Python 3.x needs more "while 1" grammar rules

This commit is contained in:
rocky
2017-02-20 08:57:16 -05:00
parent 493e4b14a1
commit 747212c62c
2 changed files with 7 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ class Python35Parser(Python34Parser):
# I'm sure by the time Python 4 comes around these will be turned
# into special opcodes
while1stmt ::= SETUP_LOOP l_stmts COME_FROM JUMP_BACK
POP_BLOCK COME_FROM_LOOP
# Python 3.5+ Await statement
stmt ::= await_stmt
await_stmt ::= call_function GET_AWAITABLE LOAD_CONST YIELD_FROM POP_TOP