You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 01:09:52 +08:00
More grammar isolation: assert2 in Python3
This commit is contained in:
@@ -235,7 +235,6 @@ class PythonParser(GenericASTBuilder):
|
||||
else_suitec ::= return_stmts
|
||||
|
||||
stmt ::= assert
|
||||
stmt ::= assert2
|
||||
|
||||
stmt ::= classdef
|
||||
stmt ::= call_stmt
|
||||
|
@@ -82,6 +82,7 @@ class Python2Parser(PythonParser):
|
||||
continue_stmts ::= lastl_stmt continue_stmt
|
||||
continue_stmts ::= continue_stmt
|
||||
|
||||
stmt ::= assert2
|
||||
stmt ::= raise_stmt0
|
||||
stmt ::= raise_stmt1
|
||||
stmt ::= raise_stmt2
|
||||
|
@@ -126,8 +126,6 @@ class Python3Parser(PythonParser):
|
||||
classdefdeco1 ::= expr classdefdeco2 CALL_FUNCTION_1
|
||||
|
||||
assert ::= assert_expr jmp_true LOAD_ASSERT RAISE_VARARGS_1 COME_FROM
|
||||
assert2 ::= assert_expr jmp_true LOAD_ASSERT expr
|
||||
RAISE_VARARGS_2 COME_FROM
|
||||
|
||||
assert_expr ::= expr
|
||||
assert_expr ::= assert_expr_or
|
||||
|
Reference in New Issue
Block a user