rocky
|
6d0f72f13b
|
Fix bug in 2.6 tryelse get test_grammar working...
localize grammar rules
|
2017-12-02 01:35:43 -05:00 |
|
rocky
|
03a5ad3d94
|
NT funcdef -> function_def to match AST
|
2017-12-01 21:36:23 -05:00 |
|
rocky
|
edfedec65c
|
Small tweak
|
2017-12-01 04:54:59 -05:00 |
|
rocky
|
dd0fe36af0
|
NT importfrom -> import_from ...
to match AST better
and importstar -> import_from_star
misc administrivia
|
2017-12-01 04:33:04 -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
|
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
|
34117522b2
|
NT importstmt -> import to match AST
|
2017-11-29 20:20:54 -05:00 |
|
rocky
|
11e2637eeb
|
NT augassign -> aug_assign to match AST
|
2017-11-29 10:51:38 -05:00 |
|
rocky
|
7775bdabd5
|
import_as -> alias; and reinstate rule
|
2017-11-29 10:38:18 -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
|
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
|
4b4fce01f6
|
Add UNARY convert; improve 2.1 imports
|
2017-11-27 21:38:09 -05:00 |
|
rocky
|
2ac8a0c0a6
|
Mege hell
|
2017-11-27 19:45:24 -05:00 |
|
rocky
|
c66be4a858
|
Grammar hell
|
2017-11-27 07:15:28 -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
|
c241b12308
|
Grammar isolation fixes
|
2017-11-27 05:16:08 -05:00 |
|
rocky
|
2674ec893a
|
Grammar reduction
|
2017-11-27 04:56:01 -05:00 |
|
rocky
|
3f7b5e6db3
|
Small grammar sync
|
2017-11-26 21:12:01 -05:00 |
|
rocky
|
3edfc1611e
|
Back off previous reduction a little
|
2017-11-26 20:33:00 -05:00 |
|
rocky
|
ad755b27a3
|
Isolaate kv, kv2 and kv3 better
|
2017-11-26 07:13:04 -05:00 |
|
rocky
|
f98e29a3a3
|
Localize kv
|
2017-11-26 01:40:34 -05:00 |
|
rocky
|
79d729e9f9
|
remove comp_ifnot
|
2017-11-26 00:58:20 -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
|
be5efe3e56
|
cmp -> compare ...
to better match the Python AST name Compare.
This forces us to change compare -> compare_single
Relates to Issue #29
|
2017-11-24 07:15:37 -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
|
184f480bc8
|
Remove whileelselastsmt ...
Right now I don't know what it does and we don't have something that
needs it
|
2017-11-23 12:33:41 -05:00 |
|
rocky
|
e2a6c0435d
|
grammar reduction of while loops
|
2017-11-23 10:51:22 -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
|
d8a3c2708e
|
Grammar coverage and pruning
|
2017-11-23 05:40:30 -05:00 |
|
rocky
|
d0644e08d7
|
Isotate conditionalnot
|
2017-11-22 19:38:02 -05:00 |
|
rocky
|
b00c59bdd7
|
Grammar reduction for load_attrs
|
2017-11-22 14:41:23 -05:00 |
|
rocky
|
f7ff4c2d41
|
Grammar cleanup: import_as_cont -> import_as
|
2017-11-18 10:26:57 -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
|
37108bc41c
|
More grammar cleanups
|
2017-11-16 12:01:18 -05:00 |
|
rocky
|
2f218fe9bf
|
More grammar isolation: assert2 in Python3
|
2017-11-16 11:20:35 -05:00 |
|
rocky
|
e26de53332
|
Isolate "and2" rule to 2.3
|
2017-11-16 10:47:35 -05:00 |
|
rocky
|
05e1be7b61
|
I said, remove dict/setcomp from <= 2.6!
|
2017-11-15 09:58:34 -05:00 |
|
rocky
|
69847dbeec
|
detected old-style Python 2.4 class better
|
2017-11-13 10:57:50 -05:00 |
|
rocky
|
9ec43de039
|
bug in 3.x importlists
consts.py: add rule for importlists. imports weren't separated by ', '.
parser.py: Make importlist a list type of node.
test/* add test for importlist
|
2017-11-09 04:42:47 -05:00 |
|
rocky
|
0bb793239b
|
Add 3.6+ grammar for except's ending in RETURN...
Not totally out of the maze in 3.6 control flow...
There are still problems with erroneous RETURN_VALUEs becoming RETURN_END_IF,
|
2017-11-08 10:31:38 -05:00 |
|
rocky
|
4c77170ddf
|
Small fixes and tweaks:
parser.py: handle errors when no tokens have been produced.
scanner3{,0}.py: DRY custom scanner 3.0 rem_or code.
scanner3.py misc other small tweaks
|
2017-11-07 12:48:03 -05:00 |
|
rocky
|
03d1c48088
|
More node checking in tables
|
2017-10-13 11:35:17 -04:00 |
|