3.8 for block without a POP_BLOCK ...

and confusing JUMP_BACK for CONTINUE. Expect more like this.

Fixes #293
This commit is contained in:
rocky
2019-10-29 13:32:43 -04:00
parent 0b111f1568
commit dba6d24361
3 changed files with 6 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ class Python38Parser(Python37Parser):
for38 ::= expr get_iter store for_block JUMP_BACK
for38 ::= expr for_iter store for_block JUMP_BACK
for38 ::= expr for_iter store for_block JUMP_BACK POP_BLOCK
for38 ::= expr for_iter store for_block
forelsestmt38 ::= expr for_iter store for_block POP_BLOCK else_suite
forelselaststmt38 ::= expr for_iter store for_block POP_BLOCK else_suitec