You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
2.6- CONTINUE/JUMP_BACK confusion workaroud
This commit is contained in:
@@ -137,6 +137,10 @@ class Python26Parser(Python2Parser):
|
|||||||
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK COME_FROM
|
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK COME_FROM
|
||||||
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK
|
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK
|
||||||
|
|
||||||
|
# Sometimes JUMP_BACK is misclassified as CONTINUE.
|
||||||
|
# workaround until we have better control flow in place
|
||||||
|
while1stmt ::= SETUP_LOOP l_stmts_opt CONTINUE
|
||||||
|
|
||||||
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_pop POP_BLOCK _come_froms
|
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_pop POP_BLOCK _come_froms
|
||||||
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_cf_pop bp_come_from
|
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_cf_pop bp_come_from
|
||||||
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_cf_pop POP_BLOCK
|
whilestmt ::= SETUP_LOOP testexpr l_stmts_opt jb_cf_pop POP_BLOCK
|
||||||
|
Reference in New Issue
Block a user