rocky
52f2b9341a
More Python 2/3 grammar restriction
2017-12-14 15:24:01 -05:00
rocky
6c552bec07
Python 2 grammar restricion to match recent Python 3
2017-12-14 14:54:40 -05:00
rocky
acdefb4f70
NT return_stmt -> return to match AST
2017-12-14 11:03:15 -05:00
rocky
63820c4300
Continue parse2/scanner2 refactor
2017-12-14 04:00:22 -05:00
rocky
94a18c1a95
Back off of previous refactor a little bit
2017-12-13 21:26:52 -05:00
rocky
303e134359
Simplify scanner2 so it relies less on custimize dict
2017-12-13 21:02:40 -05:00
rocky
aac793af09
Start parse2 customize_grammar_rule refactor
2017-12-13 18:56:38 -05:00
rocky
f82edae5a1
add_custom_rules -> customize_grammar_rules
2017-12-13 17:25:19 -05:00
rocky
84b4ac1c51
NT "_for" -> "for_iter" reduces confusion w/ "for"
2017-12-12 12:41:44 -05:00
rocky
7d8c17cb93
grammar isolation and reduction
2017-12-07 12:27:22 -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
2d628acf60
Separate rules for set, tuple, dict from list...
...
Sync fragments.py with pysource
2017-12-05 00:13:17 -05:00
rocky
8dd953de48
Slight picayune correction
2017-12-04 10:20:25 -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
344d2d92c4
NT: load_attr -> attribute to match AST
2017-12-03 13:02:22 -05:00
rocky
5fe8303184
Two bugs and a refactor ..
...
1. parse2.py: try except in a loop with a (virtual) continue
treat CONTINUE like JUMP_ABSOLUTE which it is
2. in taking methods off of constants, a parenthesis needs to be added
Some refactoring of global code done
2017-12-03 10:46:22 -05:00
rocky
5b916567fe
NT try-middle -> except-handler to match AST
2017-12-03 06:30:33 -05:00
rocky
eafb32b9a0
NT trystmt -> try_except to match AST
2017-12-02 22:20:45 -05:00
rocky
5ae32de709
Add global statements even for read of globals
2017-12-02 19:13:11 -05:00
rocky
93949e8222
Small grammar isolation bugs
2017-12-02 10:57:32 -05:00
rocky
a7005f6a77
2.7 exec stmt grammar rule isolation/reduction
2017-12-02 09:23:18 -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
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
bf5a6237d8
Isolate listcomp rule in 2.7
2017-11-30 10:30:08 -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
11e2637eeb
NT augassign -> aug_assign to match AST
2017-11-29 10:51:38 -05:00
rocky
a9171018d4
Sync up some 2.4-branch changes
2017-11-29 05:11:50 -05:00
rocky
43c3154a55
NT designatore -> store to match AST
2017-11-29 05:05:15 -05:00
rocky
c81b4df8b7
NT binary_subscr -> subscript to match AST
2017-11-29 00:08:08 -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
05ab491d2e
Small Python 2 grammar reduction
2017-11-28 11:18:11 -05:00
rocky
1fcfadb9c8
Grammar reduction inch by inch
2017-11-27 07:27:50 -05:00
rocky
f1a98e94da
Grammar isolation
2017-11-27 06:38:00 -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
rocky
d72ee71368
localize Python2 ifelsetmtr, compare_chained: 2.7
2017-11-26 19:08:20 -05:00
rocky
17f5b35b1d
More grammar isolation
2017-11-26 16:34:10 -05:00
rocky
6db5c63307
More specific 2.7 dictcomp and setcomp rules
2017-11-26 15:06:45 -05:00
rocky
bfac9a6260
Back of build_set/build_list separation
2017-11-26 09:25:37 -05:00
rocky
dd329f9c03
Isolate build_set from build_list in Python 2...
...
More work is needed. Not done in Python 3 yet
2017-11-26 09:15:35 -05:00
rocky
566ef37ecc
back off of build_slice{2,3} ->slice{2,3}
...
There is another slice rule that interferes with this.
2017-11-25 21:49:03 -05:00
rocky
b7003914c9
localize 2 and 3 argument BUILD_SLICE...
...
Nontermninal name matches AST anme now. Add test.
2017-11-25 21:10:11 -05:00
rocky
af38064a1b
remove unpack_list rule and ...
...
tidy things a bit more
2017-11-25 00:32:13 -05:00
rocky
85d65e25ba
cmp_list -> compare_chained ...
...
to better match the Python AST name Compare. Relates to Issue #29
2017-11-24 06:58:07 -05:00