rocky
45c725feae
3.6 iflaststmtl doesn't follow ifstmt rules...
...
like iflaststmt does. test_dbm_dumb.py shows this
2020-02-01 11:20:58 -05:00
rocky
cdc5642715
More reduction checks...
...
Those in reduce check as well as those listed in parse{2,3}.
3.6 iflastsmtl needs ifstmt checking.
2020-02-01 07:10:30 -05:00
rocky
4f4850d9f7
Restrict "and" reduction checking to Python 3.6
2020-02-01 04:42:46 -05:00
rocky
cb1b2a8759
Typo in last commit
2020-01-31 19:11:13 -05:00
rocky
d64158b299
No iflastlstmt reduce check for python < 3.6...
...
just yet
2020-01-31 19:07:28 -05:00
rocky
2ea8a2ef7f
was getting testlastl reduce rule from wrong place
2020-01-31 17:37:47 -05:00
rocky
258fac3201
limit 3.x scope of ifelstmt reduction check to 3.6
...
at least for now. Again, we need major cleanup of this stuff, but that
will be done later.
2020-01-31 16:22:32 -05:00
rocky
41f1d1ec09
Remove dup statement
2020-01-31 13:18:23 -05:00
rocky
89c2805c27
Start to clean up parse3 reduction rule checks...
...
A lot more work is needed, but this is a start.
2020-01-31 13:10:35 -05:00
rocky
e639a30157
Add some decompyle reduction-check goodness here
2020-01-31 12:20:12 -05:00
rocky
13ca1117ad
3.x "if" in loop grammar separation
2020-01-26 10:32:29 -05:00
rocky
71e9b0d96d
More "if" in loop parse separation
2020-01-26 09:25:04 -05:00
rocky
1fff81736f
parser if-stmt restriction thing & 3.x exclusions
2020-01-26 08:27:49 -05:00
rocky
33918bd9d2
More 3.x "if" checking. Abbreviate stmts->sstmt
2020-01-26 02:58:33 -05:00
rocky
dac277f1fa
Back off loop separate rules, a little for now
2020-01-25 18:07:05 -05:00
rocky
a50263518a
3.x if loop separation
2020-01-25 17:32:28 -05:00
rocky
73fb9f6b96
Make sure "stmts" stays the start rule
2020-01-25 16:14:36 -05:00
rocky
66b3e35a5b
3.+ More loop-isolation grammar separation...
...
but also back off some isolation separation for now.
2020-01-25 11:46:03 -05:00
rocky
f6f2d8dd05
Start to disambiguate stmts in a loop
2020-01-25 09:14:55 -05:00
rocky
13b1ec7ad8
Better "ifstmt" reduction rule and ...
...
Tidy 3.7 grammar a little
Disable a number of 3.0 bytecode for now. Will Go over later.
2020-01-25 00:04:37 -05:00
rocky
c90ff5176c
Add 3.x try reduction rule
2020-01-24 20:48:04 -05:00
rocky
eeb48818f3
Largish rework: scan while1stmt for jump out ..
...
to disambiguate.
For this, we use the self.opc JUMP_OPS sets.
For this, we neeed to store opc in the parse object.
DRY uses of "last = min(last, len(tokens))
2020-01-23 13:02:29 -05:00
rocky
b333d7afc2
If statement in loop isolation
2020-01-17 10:47:38 -05:00
rocky
d9bc5a345b
Don't check iflaststml on 3.2 just yet
2020-01-17 05:42:49 -05:00
rocky
af76218abf
More parser changes to reinstate what was working in 3.6.2...
...
However, again, probably more precise since we isolate loop rules better
However, again, this isnt' the full store. Semantics were incorrect in
Release 3.6.2 and they still are.
2020-01-17 05:36:20 -05:00
rocky
273c4bcbf0
Remove unused rule...
...
found by test_grammar.py
2020-01-17 05:01:44 -05:00
rocky
027c9a7dc0
Fix "for ... if" bug introduced since 3.6.2...
...
However we've isolated and documented the 3.x grammar a little bit better
2020-01-17 04:41:16 -05:00
rocky
39459168b0
More stringent "ifstmt" checks on 3.x
2020-01-16 14:02:04 -05:00
rocky
172239f50b
More accurate 3.6 "ifsmt" and "ifelsesmt"
2020-01-16 04:11:12 -05:00
rocky
b84c89e817
Bang on getting 3.x "try" vs "try/else" disambiguated
2020-01-11 22:36:07 -05:00
rocky
505946d747
Add "testtrue" reduction rule...
...
only for 3.7 for now.
2020-01-10 10:26:40 -05:00
rocky
fedd5e0ba5
Better "try" vs. "try"/"else" disambiguation ...
...
via reduction check that was originally only in 2.7
2020-01-09 22:37:02 -05:00
rocky
8b74d8f855
Fix bug in handling 3.5- complex annotation return...
...
Go over runtests.sh for 3.5
2020-01-09 19:55:22 -05:00
rocky
7b76d55e55
Start to fold in 3.7 reduction-rule goodness into 3.6
2020-01-08 19:50:05 -05:00
rocky
13d9bcaaa9
Some reorg and Lame attempt to disasmbiguate "and" and "if .. if"...
...
More work is needed.
2020-01-08 10:31:19 -05:00
rocky
d088e7ef11
Better 3.x if/else reduction rule checking
2020-01-05 13:27:50 -05:00
rocky
868721595d
Fix grammar rule for "expr GET_ITER" in 3.1+
2019-12-23 11:52:27 -05:00
rocky
8f4343ef22
Fix bug 3.5+ in handling nested decorators
2019-12-21 22:57:59 -05:00
rocky
9874553fb4
while1 rule adjustment for 3.0
2019-11-16 16:04:16 -05:00
rocky
04c2240d63
Python 3.0 if/else handling
2019-11-10 17:23:33 -05:00
rocky
96dcdfd744
Last change but closer...
2019-11-10 16:09:17 -05:00
rocky
82ea77c592
Python 3.0 bytecode decoding
2019-11-10 15:56:04 -05:00
rocky
09cc0d775a
Pypy 3.3 tolerance and ...
...
Remove some duplicate grammar rules
2019-11-10 13:34:51 -05:00
rocky
eed4c1025b
Pypy 3.6 tolerance
2019-10-30 11:44:04 -04:00
rocky
86c1d12e69
Pypy 3.6 tolerance
2019-10-29 18:12:06 -04:00
rocky
ebb0342b38
WIP pypy3.6 handling
2019-10-28 13:20:51 -04:00
rocky
5cb46c2ed3
Better simpler fragment fix...
...
remove hide_internal test. We changed the default and that's what
whas causing RETURN_LAST to not get included.
2019-10-12 17:55:52 -04:00
rocky
163e47fb49
Fragment fixes (and workarounds)
...
fragments.py: add more parent offsets. blacken buffer
parser3.py: additional grammar rules for fragment parser
Misc small typos and corrections
2019-10-12 12:22:27 -04:00
rocky
71735ca7ef
Note that CALL_METHOD is used in 3.7+
...
and not just Pypy anymore
2019-07-18 05:26:33 -04:00
R. Bernstein
0fe8961418
Merge pull request #269 from rocky/if-elif-else-more
...
If elif else more
2019-07-01 09:52:11 -04:00