You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
3.x "if" in loop grammar separation
This commit is contained in:
@@ -166,6 +166,7 @@ class Python3Parser(PythonParser):
|
|||||||
# ifstmts where we are in a loop
|
# ifstmts where we are in a loop
|
||||||
_ifstmts_jumpl ::= _ifstmts_jump
|
_ifstmts_jumpl ::= _ifstmts_jump
|
||||||
iflaststmtl ::= testexpr c_stmts_opt JUMP_BACK
|
iflaststmtl ::= testexpr c_stmts_opt JUMP_BACK
|
||||||
|
iflaststmtl ::= testexpr _ifstmts_jumpl
|
||||||
|
|
||||||
# These are used to keep parse tree indices the same
|
# These are used to keep parse tree indices the same
|
||||||
jump_forward_else ::= JUMP_FORWARD ELSE
|
jump_forward_else ::= JUMP_FORWARD ELSE
|
||||||
|
Reference in New Issue
Block a user