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
rocky
340ac7407f
Start another kind of testing...
...
And fix a bug found in that with 3-way equal
2017-11-24 00:10:12 -05:00
rocky
1823513841
3.x Grammar reduction of custom rules...
...
by looking for token patterns GET_ITER CALL_FUNCTION_1
2017-11-23 07:47:38 -05:00
rocky
b8f74c23f4
2.x Grammar reduction/isolation
2017-11-22 19:13:21 -05:00
rocky
b00c59bdd7
Grammar reduction for load_attrs
2017-11-22 14:41:23 -05:00
rocky
c0f0485754
Reduce unecessary grammar rules in 2.x
2017-11-22 13:06:05 -05:00
rocky
288516d8c2
Increase grammar coverage
2017-11-22 11:28:05 -05:00
rocky
58ee49159e
More grammar isolation. narrow custom rules...
...
Specifically: _mklambda with load_closure is Python2 only
Add classdefdeco2 rule only when we have seen a LOAD_BUILD_CLASS
2017-11-17 00:51:03 -05:00
rocky
f1004e6445
Bump copyright
2017-11-16 11:23:04 -05:00
rocky
2f218fe9bf
More grammar isolation: assert2 in Python3
2017-11-16 11:20:35 -05:00
rocky
c28f2f2e56
More 2.7/2.7- grammer separation & cleanup
2017-11-15 23:01:33 -05:00
rocky
f274ac0e3b
Grammar cleanup: separate some 2.7 from 2.7- rules
2017-11-15 21:04:06 -05:00
rocky
ee6db130ec
grammar cleanup: dict/set comprehensions 2.7+
2017-11-15 09:38:48 -05:00
rocky
9a141a3144
Guard around null ast
...
This can happen in profiling
2017-11-14 10:58:41 -05:00
rocky
adc9b99106
More spark-parser 2.7.0 compatabilithy changes
2017-10-10 15:11:08 -04:00
rocky
1392b18bd7
Adjust for spark-parser 2.7.0 incompatabilities
2017-10-10 14:14:26 -04:00
rocky
9be9abc682
handle newer parser reduction behavior
2017-10-03 11:53:05 -04:00
rocky
c8d15e7654
spark-parser induced changes...
...
reduce rules can be called without token streams.
2017-10-02 03:09:28 -04:00
rocky
41343c27b7
Misc bugs
...
parse2.py: restore accidently-removed while1stmt rule
scanner27.py: grammar typo
check_ast: add while1else to list of looping constructs
pysource.py: CALL_FUNCTION_VAR_KW_ARGS with positional args rule is different?
2017-04-10 07:57:56 -04:00
rocky
9e34654b38
Add more while1else grammar rules
...
Towards addressing issue #93
2017-04-10 02:47:46 -04:00
rocky
9ec312ba5e
More 2.6, 2.7 control-flow bugs
...
Wasn't limiting exception clause to try finally. Probably still has bugs
in try-finally nesting
Add another 2.6/2.7 COME_FROM to try to limit if/end scope better
2017-01-24 00:53:30 -05:00
rocky
e3f4beeb74
Lint
2016-12-24 07:45:02 -05:00