Add more while1else grammar rules

Towards addressing issue #93
This commit is contained in:
rocky
2017-04-10 02:47:46 -04:00
parent b9703cf6b4
commit 9e34654b38
9 changed files with 16 additions and 4 deletions

View File

@@ -20,8 +20,10 @@ 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
while1stmt ::= SETUP_LOOP l_stmts COME_FROM JUMP_BACK
POP_BLOCK COME_FROM_LOOP
while1elsestmt ::= SETUP_LOOP l_stmts JUMP_BACK
POP_BLOCK else_suite COME_FROM_LOOP
# Python 3.5+ Await statement
stmt ::= await_stmt