rocky
84b4ac1c51
NT "_for" -> "for_iter" reduces confusion w/ "for"
2017-12-12 12:41:44 -05:00
rocky
b544827192
NT: "forstmt" renamed to "for" to match AST
2017-12-12 12:33:27 -05:00
rocky
36fbafa0f8
Bang on 3.6 CALL_FUNCTION(_VAR)_KW
2017-12-12 11:01:34 -05:00
rocky
ec1be81de7
Grammar specialization of DELETE_xxx in 3.x
2017-12-12 05:30:35 -05:00
rocky
3705f6d096
Start to handle CALL_FUNCTION_EX more accurately
2017-12-11 08:24:27 -05:00
rocky
88fbb691d8
Fix 3.1 and 3.2 named and kwargs parsing..
...
Improve 3.4 coverage and note a 3.5 while bug
2017-12-07 16:47:56 -05:00
rocky
ef08677287
Reinstate kwargs1...
...
was just missing the semantic action rule for it
2017-12-07 13:24:55 -05:00
rocky
08789adbb4
Reduce singletons rules and ..
...
fix recently introduced kwargs bug.
2017-12-07 13:20:08 -05:00
rocky
b8b9b8463c
Fix grammar cover from last commit
2017-12-07 12:34:13 -05:00
rocky
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -05:00
rocky
41db5b8848
Fix while1/if parsing in 3.x. Reinstate some tests
2017-12-06 22:47:56 -05:00
rocky
7daf95fcb4
NT break_stmt, continue_stmt -> break, continue...
...
to match AST
2017-12-06 01:48:44 -05:00
rocky
f8d6998b22
NT continue_stmt -> continue to match AST
2017-12-06 01:45:08 -05:00
rocky
03743fa9fc
Python 3.x raise statement reduction
2017-12-05 05:57:11 -05:00
rocky
e12e278efc
Narrow 3.x mkfunc rules
2017-12-05 05:43:22 -05:00
rocky
2d628acf60
Separate rules for set, tuple, dict from list...
...
Sync fragments.py with pysource
2017-12-05 00:13:17 -05:00
rocky
9506412aba
More tidiness...
...
Shorten/improve description of what's up with add_customize_rules
2017-12-04 10:14:13 -05:00
rocky
53b195ede9
Tidy a little ...
...
parse32.py: Move common grammar rules from parse32.py to parse3.py
parse32 should just have 3.2ish specific stuff.
parse3.py: favor addRule over add_unique_rule
pysource.py: make more clear what's up with comprehensions.
more later.
2017-12-04 09:36:39 -05:00
rocky
3425851dc7
Python 3.x needs conditional_not
2017-12-04 08:40:06 -05:00
rocky
344d2d92c4
NT: load_attr -> attribute to match AST
2017-12-03 13:02:22 -05:00
rocky
5b916567fe
NT try-middle -> except-handler to match AST
2017-12-03 06:30:33 -05:00
rocky
32f3d947bb
Grammar "COME_FROM"_from cleanups ...
...
tryelse constructs in 2.x fixed up
_come_from -> _come_froms (COME_FROM*)
consolidate come_froms rule into sincle parser.py
2017-12-03 05:10:59 -05:00
rocky
eafb32b9a0
NT trystmt -> try_except to match AST
2017-12-02 22:20:45 -05:00
rocky
de594ce7f2
Remove 3-arg raise in 3.x and..
...
add tests in 2.x
2017-12-02 22:07:44 -05:00
rocky
6d0f72f13b
Fix bug in 2.6 tryelse get test_grammar working...
...
localize grammar rules
2017-12-02 01:35:43 -05:00
rocky
8b6ae46a1d
Isolate and reduce 3.x conditionals and lambda rules
2017-12-01 22:03:12 -05:00
rocky
ad822c02d8
opt_come_from_loop -> come_from_loops...
...
ANd remove unused rules associated with COME_FROM_FINALLY
2017-12-01 21:46:56 -05:00
rocky
03a5ad3d94
NT funcdef -> function_def to match AST
2017-12-01 21:36:23 -05:00
rocky
dfdd5c6c1c
NT build_list -> list to match AST
2017-12-01 03:55:31 -05:00
rocky
01b5ed2304
NT mapexpr -> dict to match AST
2017-11-30 15:59:15 -05:00
rocky
3d8eb01c4c
_ifstmts_jump rule reduction in 3.x
2017-11-30 11:17:44 -05:00
rocky
6e19e922f8
Last commit introduced a bug
2017-11-30 10:41:50 -05:00
rocky
860d9b21f0
Isolate listcomp a little in Python 3 too
2017-11-30 10:36:00 -05:00
rocky
ac4d4d1da9
NT dictcomp -> dict_comp to match AST
2017-11-30 08:50:00 -05:00
rocky
0b284f8230
NT setcomp -> set_comp to match AST
2017-11-30 07:14:29 -05:00
rocky
fcdea73b4f
list_compr -> list_comp to match AST...
...
more Python 3 custom rule cleanup
2017-11-29 21:26:31 -05:00
rocky
6fee7fdfe3
Claan up 3.x custom MAKE_{FUNCTION,CLOSURE} rules
2017-11-29 21:09:50 -05:00
rocky
4ea1416fdd
Python 3.x reduction of listcomp with closures
2017-11-29 19:14:08 -05:00
rocky
c4bfe38ee0
Reduce 3.x rules, esp. listcomp
2017-11-29 19:03:11 -05:00
rocky
acb4ffb758
Better grammar coverage; reduce 3.x mklambda rules
2017-11-29 16:39:32 -05:00
rocky
11e2637eeb
NT augassign -> aug_assign to match AST
2017-11-29 10:51:38 -05:00
rocky
f2eaa09e96
Fix import and 3.x class bugs...
...
import x.y as z was failing across all Python versions
class decorators for Python 3.0..3.3 was failing
reduce 3.x while grammar rules
2017-11-29 06:59:05 -05:00
rocky
43c3154a55
NT designatore -> store to match AST
2017-11-29 05:05:15 -05:00
rocky
fb695616a6
NT call_function -> call to match AST
2017-11-28 22:13:23 -05:00
rocky
071207ce48
NT genexpr -> generate_exp to match AST
2017-11-28 17:53:33 -05:00
rocky
dded92b85d
Narrow unused classdefdeco2 rules
2017-11-28 12:49:37 -05:00
rocky
43076a2548
3.6 genexpr has changed
...
Fixes Issue #139
2017-11-28 06:57:15 -05:00
rocky
169e4681c3
Grammar isolation
2017-11-27 05:26:43 -05:00
rocky
2674ec893a
Grammar reduction
2017-11-27 04:56:01 -05:00
rocky
2e6f2cac27
Remove some unused grammar rules
2017-11-26 19:43:37 -05:00