You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
Python 3: "or" doesn't have optional come_from
This commit is contained in:
@@ -453,7 +453,6 @@ class PythonParser(GenericASTBuilder):
|
||||
_mklambda ::= load_closure mklambda
|
||||
_mklambda ::= mklambda
|
||||
|
||||
or ::= expr jmp_true expr come_from_opt
|
||||
and2 ::= _jump jmp_false COME_FROM expr COME_FROM
|
||||
|
||||
expr ::= conditional
|
||||
|
@@ -216,6 +216,7 @@ class Python2Parser(PythonParser):
|
||||
expr ::= unary_convert
|
||||
|
||||
and ::= expr jmp_false expr come_from_opt
|
||||
or ::= expr jmp_true expr come_from_opt
|
||||
|
||||
slice0 ::= expr SLICE+0
|
||||
slice0 ::= expr DUP_TOP SLICE+0
|
||||
|
@@ -232,6 +232,7 @@ class Python3Parser(PythonParser):
|
||||
WITH_CLEANUP END_FINALLY
|
||||
|
||||
and ::= expr jmp_false expr COME_FROM
|
||||
or ::= expr jmp_true expr COME_FROM
|
||||
'''
|
||||
|
||||
def p_misc3(self, args):
|
||||
|
Reference in New Issue
Block a user