You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-02 16:44:46 +08:00
Grammar reduction
This commit is contained in:
@@ -415,10 +415,6 @@ class PythonParser(GenericASTBuilder):
|
||||
|
||||
def p_setcomp(self, args):
|
||||
"""
|
||||
expr ::= setcomp
|
||||
|
||||
setcomp ::= LOAD_SETCOMP MAKE_FUNCTION_0 expr GET_ITER CALL_FUNCTION_1
|
||||
|
||||
comp_iter ::= comp_if
|
||||
comp_iter ::= comp_for
|
||||
comp_iter ::= comp_body
|
||||
@@ -512,8 +508,6 @@ class PythonParser(GenericASTBuilder):
|
||||
compare_chained ::= expr compare_chained1 ROT_TWO POP_TOP _come_from
|
||||
compare_chained2 ::= expr COMPARE_OP JUMP_FORWARD
|
||||
|
||||
mapexpr ::= BUILD_MAP kvlist
|
||||
|
||||
# Non-null kvlist items are broken out in the indiviual grammars
|
||||
kvlist ::=
|
||||
|
||||
|
Reference in New Issue
Block a user