Grammar cleanup: separate some 2.7 from 2.7- rules

This commit is contained in:
rocky
2017-11-15 21:04:06 -05:00
parent 05e1be7b61
commit f274ac0e3b
3 changed files with 14 additions and 5 deletions

View File

@@ -108,6 +108,9 @@ class Python27Parser(Python2Parser):
while1stmt ::= SETUP_LOOP return_stmts bp_come_from
while1stmt ::= SETUP_LOOP return_stmts COME_FROM
while1elsestmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_BLOCK else_suite COME_FROM
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK POP_BLOCK COME_FROM
"""
def add_custom_rules(self, tokens, customize):