3.x "if" in loop grammar separation

This commit is contained in:
rocky
2020-01-26 10:32:29 -05:00
parent e80e72e6ab
commit 13ca1117ad

View File

@@ -166,6 +166,7 @@ class Python3Parser(PythonParser):
# ifstmts where we are in a loop
_ifstmts_jumpl ::= _ifstmts_jump
iflaststmtl ::= testexpr c_stmts_opt JUMP_BACK
iflaststmtl ::= testexpr _ifstmts_jumpl
# These are used to keep parse tree indices the same
jump_forward_else ::= JUMP_FORWARD ELSE