mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
Localize kv
This commit is contained in:
parent
79d729e9f9
commit
f98e29a3a3
BIN
test/bytecode_2.2/01_kv.pyc
Normal file
BIN
test/bytecode_2.2/01_kv.pyc
Normal file
Binary file not shown.
@ -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
|
||||
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user