Fix whileelse bug

This commit is contained in:
rocky
2018-01-11 21:52:33 -05:00
parent b2c082bba2
commit c6e20e4444
9 changed files with 17 additions and 8 deletions

View File

@@ -19,9 +19,9 @@ class Python34Parser(Python33Parser):
# FIXME the below masks a bug in not detecting COME_FROM_LOOP
# grammar rules with COME_FROM -> COME_FROM_LOOP alreadly exist
# grammar rules with COME_FROM -> COME_FROM_LOOP already exist
whileelsestmt ::= SETUP_LOOP testexpr l_stmts_opt JUMP_BACK POP_BLOCK
else_suite COME_FROM
else_suitel COME_FROM
# Python 3.4+ optimizes the trailing two JUMPS away