Commit Graph

1319 Commits

Author SHA1 Message Date
Kodi Arfer
f6b9ba9b8f Fix some bugs in ap-reduce 2019-12-15 14:55:31 -05:00
Kodi Arfer
8872f0b44c Remove hy.contrib.multi 2019-11-18 20:06:17 -05:00
Adam Porter
0f3d256ebf Add: parse-args function
Closes #1719.
2019-10-30 10:16:45 -05:00
Kodi Arfer
f8d3826689
Merge pull request #1824 from refi64/drop-clint
Drop clint for colors in favor of colorama
2019-10-22 08:59:46 -04:00
Noah Snelson
7af169f089 Add HyHelper object to override builtins.help, fixes REPL prompt 2019-10-14 14:10:42 -04:00
Ryan Gonzalez
0579561b83 Drop clint for colors in favor of colorama
Closes #1820.
2019-10-08 09:50:15 -05:00
Ryan Gonzalez
e1ab140a6e Implement the of macro 2019-10-08 09:40:15 -05:00
Ryan Gonzalez
1865feb7d6 Implement PEP 3107 & 526 annotations (closes #1794) 2019-10-08 09:40:15 -05:00
Ryan Gonzalez
fd8514718b Refactor function argument compilation 2019-10-08 09:40:15 -05:00
Ryan Gonzalez
6eedb19a07 Clean up assignment handling code 2019-10-08 09:40:15 -05:00
Kodi Arfer
8351ccf9d9 Allow inline Python 2019-09-17 12:04:03 -04:00
Ryan Gonzalez
1b8b1f110a
Merge pull request #1813 from Kodiologist/homeless
Avoid a crash when we can't access a history file
2019-08-19 12:40:08 -05:00
Kodi Arfer
7aaece3725 Use #* assignments instead of head-tail 2019-08-18 09:44:29 -04:00
Kodi Arfer
cc8948d9b9 Return plain lists from HyDict.keys, .values 2019-08-18 09:43:02 -04:00
Kodi Arfer
8576d00ce8 Implement HySequence with tuples instead of lists 2019-08-18 09:43:02 -04:00
Kodi Arfer
52c0e4e221 Add explicit checks for HyList 2019-08-18 09:43:02 -04:00
Kodi Arfer
dce0e10f3f Use nonlocal instead of a singleton list 2019-08-18 09:43:02 -04:00
Kodi Arfer
4a40ff3d7e Check for HySequence in hy.contrib.walk 2019-08-18 09:43:02 -04:00
Kodi Arfer
95ad5a01c8 Avoid mutating HyLists in hy.contrib 2019-08-18 09:43:02 -04:00
Kodi Arfer
9ddb3b1031 Rewrite _with 2019-08-18 09:43:02 -04:00
Kodi Arfer
6cced31738 Rewrite cond 2019-08-18 09:43:02 -04:00
Kodi Arfer
88c0f92810 Clean up string handling in _compile_assign 2019-08-18 09:43:02 -04:00
Kodi Arfer
ad74a92e2d Avoid a crash when we can't access a history file 2019-08-16 19:03:34 -04:00
Kodi Arfer
84fbf04f84 Fix AST representation of format strings 2019-08-13 16:07:46 -04:00
Kodi Arfer
6fb6eefd6b Make augmented assignment operators variadic 2019-08-08 15:12:03 -04:00
Kodi Arfer
d32e460531 Remove some exceptions in keyword parsing 2019-07-24 11:21:11 -04:00
Ryan Gonzalez
6f3b6ca735 Pre-Python 3.4 cleanup (including Python 2) 2019-07-22 14:11:17 -04:00
Ryan Gonzalez
289f172d56 Fix #1790: Rework statements in while condition
This avoids compiling them more than once while also applying some simplification.
2019-07-22 11:34:48 -04:00
Kodi Arfer
d99cf80986 Run statements in the second argument of assert
I've edited the test to use a list instead of a set because the order of evaluation probably ought to be guaranteed.
2019-07-21 10:17:24 -04:00
Kodi Arfer
3afb4fdabe Use mkexpr in HyASTCompiler.imports_as_stmts 2019-07-21 10:17:24 -04:00
Kodi Arfer
349da353d6 Factor out compiler subs for constructing HyExprs 2019-07-21 10:17:24 -04:00
Kodi Arfer
c99360b294 Remove support for defclass attribute lists 2019-07-17 14:34:31 -04:00
Kodi Arfer
6bc9e842e1 Clean up whitespace 2019-07-17 14:34:31 -04:00
Kodi Arfer
308bedbebe Remove uses of defclass attribute lists 2019-07-17 14:34:31 -04:00
Kodi Arfer
ba9b0239c7 Fix crashes on the new Python 3.8 alpha 2019-06-04 16:03:52 -04:00
Kodi Arfer
9b4178ebd0 Remove undocumented fns integer and string 2019-06-04 14:01:59 -04:00
Kodi Arfer
6af6a2945a Remove if-python2 and its uses 2019-06-04 14:01:59 -04:00
Kodi Arfer
7ba1407257 Remove hy._compat.PY3 2019-06-04 14:01:59 -04:00
Kodi Arfer
762e5fad2d Remove Python 2 support in hy.compiler 2019-06-04 14:01:59 -04:00
Kodi Arfer
67def3359f Remove Python 2 support from hy.importer 2019-06-04 14:01:59 -04:00
Kodi Arfer
5dcb03b64d Move isidentifier to hy.lex 2019-06-04 14:01:59 -04:00
Kodi Arfer
d7da03be12 Simplify hy._compat.isidentifier 2019-06-04 14:01:59 -04:00
Kodi Arfer
e45cee575a Move rename_function to hy.macros 2019-06-04 14:01:59 -04:00
Kodi Arfer
7991c59480 Remove handling of UCS-2 2019-06-04 14:01:59 -04:00
Kodi Arfer
c255f0d03c Remove old hy._compat raising code 2019-06-04 14:01:59 -04:00
Kodi Arfer
ecf0352d37 Remove aliases: builtins, FileNotFoundError 2019-06-04 14:01:59 -04:00
Kodi Arfer
2685b01a4b Remove miscellaneous PY3 checks 2019-06-04 14:01:59 -04:00
Kodi Arfer
bba97ab2a6 Remove hy._compat's type aliases 2019-06-04 14:01:59 -04:00
Kodi Arfer
e77ce92635 Simplify gensym format 2019-04-29 08:10:51 -04:00
Kodi Arfer
6c74cf1f07 Add setx for assignment expressions 2019-04-23 15:35:12 -04:00