Python 3 grammar clean up and reorganization

This commit is contained in:
rocky
2017-11-17 07:16:24 -05:00
parent 58ee49159e
commit b7f8bee11f
2 changed files with 153 additions and 141 deletions

View File

@@ -18,9 +18,6 @@ class Python33Parser(Python32Parser):
# We do the grammar hackery below for semantics
# actions that want c_stmts_opt at index 1
iflaststmt ::= testexpr c_stmts_opt33
c_stmts_opt33 ::= JUMP_BACK JUMP_ABSOLUTE c_stmts_opt
whileTruestmt ::= SETUP_LOOP l_stmts JUMP_ABSOLUTE
JUMP_BACK COME_FROM_LOOP