rocky
1a3f2b8ab0
Misc lint
2024-07-21 17:34:06 -04:00
rocky
b28f3058fc
Expand grammar check for ifelse continue for 2.7
2024-07-12 21:30:46 -04:00
Andre Eberle
7f3c1fa3a4
Tentative fix for issue #437 . I added a new set of rules in ifelsestmt.py to check against for offsets. Seems to have fixed current issue. The result output is switching nested if-else-if-else-etc to a chain of if-elif-elif now, but semantically seems correct.
2023-04-08 16:54:55 -04:00
rocky
1819fc8944
ifelsetmt - jump back is only allowed inside loops
2022-10-16 17:50:58 -04:00
rocky
976705fc0a
Add: Python 2.7: ifelsestmtc
2022-10-10 04:30:48 +02:00
rocky
4260deea11
Tidy ifelsemstmt check
2022-08-29 05:46:46 -04:00
Bo Xuan
2f3b5e53d4
Add test case
2022-08-24 16:19:39 +08:00
Bo Xuan
81633b3c1c
Fix offset of extended argument instruction
2022-08-23 14:18:31 +08:00
rocky
cc4ea47d24
Use ifelsetmt reduction rule on 2.7
2022-07-04 07:56:44 -04:00
rocky
15efaffe8d
More Python version tuple comparison conversion
2021-10-16 11:41:22 -04:00
rocky
c68b74a9c6
new dis - Python compisons involving tuples
2021-10-15 23:39:59 -04:00
rocky
5cc572147a
Handle more ifelse reduction rules patterns
2020-06-27 09:10:48 -04:00
rocky
02f502c40a
New grammar rule often imples expanded reduce rule
2020-06-12 21:12:02 -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
610994277c
2.7 ifelsestmt reduction rule futzing
2020-02-02 07:52:08 -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
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
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
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