Grammar reduction for load_attrs

This commit is contained in:
rocky
2017-11-22 14:41:23 -05:00
parent c0f0485754
commit b00c59bdd7
3 changed files with 6 additions and 5 deletions

View File

@@ -33,6 +33,9 @@ class Python24Parser(Python25Parser):
importmultiple ::= filler LOAD_CONST import_as imports_cont
import_cont ::= filler LOAD_CONST import_as
import_as ::= IMPORT_NAME load_attrs designator
load_attrs ::= LOAD_ATTR+
# Python 2.5+ omits POP_TOP POP_BLOCK
while1stmt ::= SETUP_LOOP l_stmts JUMP_BACK POP_TOP POP_BLOCK COME_FROM
while1stmt ::= SETUP_LOOP l_stmts_opt JUMP_BACK POP_TOP POP_BLOCK COME_FROM