Flow control bites again.

See related appveyor https://ci.appveyor.com/project/rocky/python-decompile3/builds/25301153/job/x0we0dpgb3apgk1v
This commit is contained in:
rocky
2019-06-15 07:18:30 -04:00
parent 3c06b82931
commit 4b82806d6c

View File

@@ -79,6 +79,12 @@ class Python37Parser(Python36Parser):
attribute37 ::= expr LOAD_METHOD attribute37 ::= expr LOAD_METHOD
expr ::= attribute37 expr ::= attribute37
# long except clauses in a loop can sometimes cause a JUMP_BACK to turn into a
# JUMP_FORWARD to a JUMP_BACK. And when this happens there is an additional
# ELSE added to the except_suite. With better flow control perhaps we can
# sort this out better.
except_suite ::= c_stmts_opt POP_EXCEPT jump_except ELSE
# FIXME: generalize and specialize # FIXME: generalize and specialize
call ::= expr CALL_METHOD_0 call ::= expr CALL_METHOD_0