Commit Graph

2536 Commits

Author SHA1 Message Date
Kodi Arfer
03aafad657 Make empty expressions illegal at the top level 2018-07-24 08:59:52 -07:00
Kodi Arfer
addf9c4a01
Merge pull request #1652 from Kodiologist/release
Hy 0.15.0
2018-07-21 11:33:22 -07:00
Kodi Arfer
4020f3dd56 Clean up NEWS 2018-07-21 11:20:13 -07:00
Kodi Arfer
9af738e56d Add hy2py tests for empty data structures 2018-07-21 11:20:13 -07:00
Kodi Arfer
abbf29165a Depend on astor 0.7 2018-07-21 11:20:10 -07:00
Ryan Gonzalez
bd0486ebf2
Merge pull request #1659 from Kodiologist/doc-updates
Small documentation additions
2018-07-11 21:23:05 -05:00
Kodi Arfer
e05af9d7e0 Document function docstrings 2018-07-11 11:59:46 -07:00
Kodi Arfer
9859b0085c Document the required order of &-parameters 2018-07-11 11:36:32 -07:00
Kodi Arfer
9cc90362d0 Docs: string literal prefixes must be in lowercase 2018-07-11 11:24:19 -07:00
gilch
0de8557fb5
Merge pull request #1647 from gilch/let-rebind
Fix let rebind bug.
2018-07-08 21:52:32 -06:00
Kodi Arfer
71dfec9d2f Add reminder to check master before reporting bugs (#1654) 2018-07-08 15:29:08 -05:00
Kodi Arfer
9253029344
Merge pull request #1643 from Kodiologist/compiler-cleanup
Miscellaneous compiler cleanup
2018-07-05 13:32:02 -07:00
Kodi Arfer
af8907b151 Minor cleanup in compile_unary_operator 2018-06-30 11:04:57 -07:00
Kodi Arfer
88f33453dc Minor cleanup for raise and try 2018-06-30 11:04:11 -07:00
Kodi Arfer
bd675a5db6 Unmangle in compile_expression before build_method
This ensures that e.g. the symbols "~" and "hyx_XtildeX" in the root position will both appear as "~" to the build method.
2018-06-30 11:04:11 -07:00
Kodi Arfer
fca2eb93b0 Remove dead code from HyASTCompiler.compile 2018-06-30 11:04:11 -07:00
Kodi Arfer
00150c088c Remove an unused helper method in the compiler 2018-06-30 11:04:11 -07:00
Kodi Arfer
e2b98effda Replace an unused variable with _ 2018-06-30 11:04:11 -07:00
Kodi Arfer
217fc2a487 Clean up _render_quoted_form 2018-06-30 11:04:11 -07:00
Kodi Arfer
8a70d5c90f Fold _branch into the compiler 2018-06-30 11:04:11 -07:00
Kodi Arfer
45ec57ab56 Simplify Result.force_expr 2018-06-30 11:04:11 -07:00
Kodi Arfer
21f7ef0713 Fold load_stdlib into the compiler 2018-06-30 11:04:11 -07:00
Kodi Arfer
d501b073d8 Fold compile_time_ns into the compiler 2018-06-30 11:04:11 -07:00
Kodi Arfer
3d3d1fe6ae Remove unused compiler subroutines 2018-06-30 11:04:11 -07:00
Kodi Arfer
9c6714c176 Remove unused imports 2018-06-30 11:04:11 -07:00
gilch
8c79015b40 Fix let rebind bug. 2018-06-27 23:41:49 -06:00
gilch
4b0e318997 Remove outdated comment in walk. 2018-06-27 23:39:44 -06:00
gilch
9a8886a452 Proper special indent in let tests. 2018-06-27 23:38:06 -06:00
Kodi Arfer
4de18d3dff
Merge pull request #1638 from Kodiologist/no-import-dot
Make importing a dotted name a syntax error, per Python
2018-06-27 10:32:54 -07:00
Kodi Arfer
7abd8ffc2a Make importing a dotted name a syntax error, per Python 2018-06-27 10:24:22 -07:00
Kodi Arfer
86deff6531
Merge pull request #1637 from oskarkv/patch-1
Look for o!-syms in (flatten args) of defmacro!
2018-06-25 12:00:41 -07:00
Oskar Kvist
97c15c1bb9 Add Oskar Kvist to AUTHORS 2018-06-25 11:45:23 -07:00
Oskar Kvist
edbe8e3b7f Make defmacro! work with optional args 2018-06-25 11:45:23 -07:00
Kodi Arfer
f22195dfbc
Merge pull request #1626 from Kodiologist/newcomp3
Fancier `for` and comprehensions
2018-06-16 14:16:41 -07:00
Kodi Arfer
da754c0e5d Update NEWS and docs for the new comprehensions 2018-06-13 17:31:08 -07:00
Kodi Arfer
76b80bad81 Remove support for the old comprehension forms 2018-06-13 17:31:08 -07:00
Kodi Arfer
14979edcab Remove tests of the old comprehension forms 2018-06-13 17:31:08 -07:00
Kodi Arfer
cf0dafef9b Update uses of the old comprehension forms 2018-06-13 17:31:08 -07:00
Kodi Arfer
df4e49ec94 Test comprehension scoping 2018-06-13 17:31:08 -07:00
Kodi Arfer
4754b152a9 Allow comprehensions with no looping parts 2018-06-13 17:31:08 -07:00
Kodi Arfer
e1972c535f Remove for/a, for*, and for/a* 2018-06-13 17:31:08 -07:00
Kodi Arfer
3256932b13 Add a version of for parallel to lfor etc. 2018-06-13 17:31:08 -07:00
Kodi Arfer
ba1dc55e96 Implement lfor, sfor, gfor, dfor 2018-06-13 17:31:08 -07:00
Kodi Arfer
7a40561db8 Add tagged model patterns 2018-06-13 17:31:08 -07:00
Kodi Arfer
5ffbb4b0eb Add Result.lineno and Result.col_offset 2018-06-13 17:31:08 -07:00
Kodi Arfer
844256b99b Make Asty use static rather than instance methods
This ensures `asty.Pass is asty.Pass`.
2018-06-13 17:31:08 -07:00
Kodi Arfer
d3bd7c1017
Merge pull request #1625 from Kodiologist/potpourri
Miscellaneous small changes
2018-06-13 17:30:14 -07:00
Kodi Arfer
d621d7c3ab Update defmacro(/g)! tests for mangling 2018-06-11 21:05:29 -07:00
Kodi Arfer
498a54e770 Fix discovery of tests with mangled names 2018-06-11 21:05:29 -07:00
Kodi Arfer
65e620ed55 Remove an obsolete bug workaround in a test 2018-06-11 21:05:29 -07:00