You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Merge branch 'master' into python-2.4
This commit is contained in:
@@ -26,6 +26,26 @@ class Python37Parser(Python36Parser):
|
||||
super(Python37Parser, self).__init__(debug_parser)
|
||||
self.customized = {}
|
||||
|
||||
def p_37misc(self, args):
|
||||
"""
|
||||
# Where does the POP_TOP really belong?
|
||||
stmt ::= import37
|
||||
import37 ::= import POP_TOP
|
||||
|
||||
# Is there a pattern here?
|
||||
attributes ::= IMPORT_FROM ROT_TWO POP_TOP IMPORT_FROM
|
||||
|
||||
# FIXME: generalize and specialize
|
||||
attribute37 ::= LOAD_FAST LOAD_METHOD
|
||||
attribute37 ::= LOAD_NAME LOAD_METHOD
|
||||
expr ::= attribute37
|
||||
|
||||
# FIXME: generalize and specialize
|
||||
call ::= expr CALL_METHOD_0
|
||||
"""
|
||||
|
||||
def customize_grammar_rules(self, tokens, customize):
|
||||
super(Python37Parser, self).customize_grammar_rules(tokens, customize)
|
||||
|
||||
class Python37ParserSingle(Python37Parser, PythonParserSingle):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user