rocky
b77efec36c
git commit -m'Adjust "or" offset check ...
...
for Python < 3.6 hopefully it doesn't break Python 3.6+
2020-04-18 19:21:59 -04:00
rocky
17d07eaf00
continuing xdis refactor aftermath...
...
Both 2.7 bytecode broken from the refactor have now been reinstated, but
two 3.5 and 3.6 bytecode have moved into the "todo" category.
2020-04-18 18:47:06 -04:00
rocky
2fd61b1016
Add 3.7ish "or" check
2020-04-16 16:35:27 -04:00
rocky
badfe5456f
Track "or" grammar changes...
...
Remove re deprecation warning
2020-04-16 15:25:42 -04:00
rocky
874d196e5c
3.x ifelsestmtc reduction rule fix
2020-02-13 05:41:15 -05:00
rocky
8836444be2
Correct ifelsestmtc rules for 3.x
2020-02-09 08:14:44 -05:00
rocky
e2504c2421
3.7 ifelstmtl reduction rule checking
2020-02-08 13:47:05 -05:00
rocky
b0931275a2
Need more precise "assert" for 3.8...
...
Add rule for ifelsestmtl which is needed in 3.8
2020-02-08 11:46:19 -05:00
rocky
7c73536b4a
3.6 "assert" and "or" handling bugs
2020-02-08 07:27:31 -05:00
rocky
c93a7a728b
Add decompyle3 ifelsestmt reduction rule...
...
and Go over 3.3 and 3.7 runtests excludes
2020-02-07 19:22:23 -05:00
rocky
621bc96e8a
Ensure offset is an int in offset test
2020-02-04 20:20:40 -05:00
rocky
610994277c
2.7 ifelsestmt reduction rule futzing
2020-02-02 07:52:08 -05:00
rocky
cf505545c0
3.6 iflastlstmt rule checking again
2020-02-01 12:00:08 -05:00
rocky
451b18ee57
2.7 tryelse rule check disambiguation.
2020-02-01 04:05:50 -05:00
rocky
2d1ea6b02b
See previous commit
2020-01-31 21:12:59 -05:00
rocky
f279cc2d70
ifelsesmt for 2.7 yet again
2020-01-31 21:10:24 -05:00
rocky
f27b72ab05
Work around 2.7 phony come-froms in ifelsesmt
2020-01-31 15:49:29 -05:00
rocky
be022b3416
Start ifelsestmt reduce checks in Python 2.7
2020-01-31 13:58:06 -05:00
rocky
e639a30157
Add some decompyle reduction-check goodness here
2020-01-31 12:20:12 -05:00
rocky
33918bd9d2
More 3.x "if" checking. Abbreviate stmts->sstmt
2020-01-26 02:58:33 -05:00
rocky
c90ff5176c
Add 3.x try reduction rule
2020-01-24 20:48:04 -05:00
rocky
4067a30573
Fix bug introduced by a recent refactoring
2020-01-24 03:11:51 -05:00
rocky
e76e9b7ab6
ifelsestmt reduce check tracking parse rule change
2020-01-23 20:04:53 -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
e17d9c806a
ifstmt reduction vs extended_args
2020-01-22 19:14:52 -05:00
rocky
bc50825460
Conditional jumps to extended-arg JUMP_BACK...
...
this is a major reworking. But it leads the way forward to a
simpler grammar.
2020-01-22 05:32:27 -05:00
rocky
b91df57a82
Add "ifelsestmt" reduce rule checking
2020-01-21 16:03:12 -05:00
rocky
af1fe8f176
3.7 and 2.6 coexistance in handling jump targets
2020-01-15 21:38:53 -05:00
rocky
0677ddc8fb
Constrain ifelsestmt on 2.6 more.
2020-01-15 21:32:39 -05:00
rocky
5f230fa177
Add 3.7 "testfalsel" for looping conditions
2020-01-14 18:41:39 -05:00
rocky
8fda09459c
tryelsestmtl3 needs more checks
2020-01-11 22:50:18 -05:00
rocky
021c5cad2a
Ooops - stray debug left in
2020-01-11 22:37:40 -05:00
rocky
b84c89e817
Bang on getting 3.x "try" vs "try/else" disambiguated
2020-01-11 22:36:07 -05:00
rocky
c3d7ba6dad
3.7 "imports" and "or"
2020-01-11 07:23:23 -05:00
rocky
6cef42f6c7
3.7+ "or" disambiguation and assert2 handling
2020-01-10 20:44:28 -05:00
rocky
eba8f04e29
DRY reducecheck code
2020-01-10 15:36:24 -05:00
rocky
d1bc30e2f1
3.7 testtrue with asserts
2020-01-10 14:04:47 -05:00
rocky
fd2b551661
Forgot to add testtrue check
2020-01-10 10:29:24 -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
7bcebf8656
Move some parse2 reduction rules into reducecheck
2020-01-09 21:24:04 -05:00
rocky
778c8d6003
Forgot to add this file.
2020-01-09 04:39:27 -05:00
rocky
5fc54015e4
3.7+ or reduction rule again
2020-01-09 04:32:15 -05:00
rocky
7c03cc466d
More 2.7 compatibility
2020-01-09 01:35:50 -05:00
rocky
086ceaf176
More 2.7 compatibility
2020-01-09 01:34:41 -05:00
rocky
30d8830957
Fix 2.x compatibility
2020-01-09 01:32:15 -05:00
rocky
199fb532bf
Move code from parse37base to reducechecks
2020-01-08 22:24:41 -05:00
rocky
b0d931b760
Small changes
2020-01-08 20:43:32 -05:00
rocky
6f6ef19e0a
Start splitting out reduction checks
2020-01-08 20:25:59 -05:00