Localize kv

This commit is contained in:
rocky 2017-11-26 01:26:57 -05:00
parent 79d729e9f9
commit f98e29a3a3
3 changed files with 3 additions and 2 deletions

BIN
test/bytecode_2.2/01_kv.pyc Normal file

Binary file not shown.

View File

@ -516,12 +516,10 @@ class PythonParser(GenericASTBuilder):
mapexpr ::= BUILD_MAP kvlist
kvlist ::= kvlist kv
kvlist ::= kvlist kv2
kvlist ::= kvlist kv3
kvlist ::=
kv ::= DUP_TOP expr ROT_TWO expr STORE_SUBSCR
kv2 ::= DUP_TOP expr expr ROT_THREE STORE_SUBSCR
kv3 ::= expr expr STORE_MAP

View File

@ -18,6 +18,9 @@ class Python22Parser(Python23Parser):
COME_FROM POP_TOP COME_FROM
list_for ::= expr _for designator list_iter CONTINUE JUMP_FORWARD
COME_FROM POP_TOP COME_FROM
kvlist ::= kvlist kv
kv ::= DUP_TOP expr ROT_TWO expr STORE_SUBSCR
'''
class Python22ParserSingle(Python23Parser, PythonParserSingle):