You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Tidy parse3 grammer a little
This commit is contained in:
@@ -409,7 +409,7 @@ class Python3Parser(PythonParser):
|
|||||||
|
|
||||||
|
|
||||||
_ifstmts_jump ::= return_if_stmts
|
_ifstmts_jump ::= return_if_stmts
|
||||||
_ifstmts_jump ::= c_stmts_opt JUMP_FORWARD COME_FROM _come_from
|
o _ifstmts_jump ::= c_stmts_opt JUMP_FORWARD _come_from _come_from
|
||||||
|
|
||||||
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE
|
iflaststmt ::= testexpr c_stmts_opt JUMP_ABSOLUTE
|
||||||
|
|
||||||
@@ -429,11 +429,8 @@ class Python3Parser(PythonParser):
|
|||||||
# one COME_FROM for Python 2.7 seems to associate the
|
# one COME_FROM for Python 2.7 seems to associate the
|
||||||
# COME_FROM targets from the wrong places
|
# COME_FROM targets from the wrong places
|
||||||
|
|
||||||
come_froms ::= COME_FROM COME_FROM
|
|
||||||
come_froms ::= COME_FROM
|
|
||||||
|
|
||||||
trystmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
trystmt ::= SETUP_EXCEPT suite_stmts_opt POP_BLOCK
|
||||||
try_middle come_froms
|
try_middle COME_FROM _come_from
|
||||||
|
|
||||||
# this is nested inside a trystmt
|
# this is nested inside a trystmt
|
||||||
tryfinallystmt ::= SETUP_FINALLY suite_stmts
|
tryfinallystmt ::= SETUP_FINALLY suite_stmts
|
||||||
|
Reference in New Issue
Block a user