2.6 and 2.7 while1 grammar rule

Fixes issue #40
This commit is contained in:
rocky
2016-07-27 13:19:42 -04:00
parent 87dc5ad80c
commit 5ffd9b2be7
10 changed files with 29 additions and 6 deletions

View File

@@ -40,6 +40,11 @@ class Python2Parser(PythonParser):
print_nl ::= PRINT_NEWLINE
'''
def p_stmt2(self, args):
"""
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK POP_BLOCK COME_FROM
"""
def p_print_to(self, args):
'''
stmt ::= print_to