rocky
631940887f
Additional Python 2.x assert vs raise testing
2018-03-25 17:35:18 -04:00
rocky
0c3db340fa
2.7 bug confusing "or" with "if" and "assert"
2018-03-21 13:18:18 -04:00
rocky
50e59a37c1
Python 2 "for" grammar rule isolation
2018-03-19 16:15:53 -04:00
rocky
51dec051df
Slightly better assert detection
2018-03-08 08:31:50 -05:00
rocky
9f66694056
dictcomp_func -> dict_comp_func...
...
to match AST better. Also adds a correction in last commit,
including set_comp -> set_comp_expr where apprpriate
Note: can't use dict_comp as that was already used.
But dict_comp_func is matches AST better than dictcomp_func
2018-03-05 11:12:15 -05:00
rocky
5edcc7c2eb
Remove restriction that there are no more statements after a "return" statement
2018-01-28 00:13:09 -05:00
rocky
7db8001d54
Limit pypy exception customization to pypy
2018-01-07 11:20:01 -05:00
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