You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-04 09:22:40 +08:00
3.7 ifelstmtl reduction rule checking
This commit is contained in:
@@ -992,6 +992,7 @@ class Python37BaseParser(PythonParser):
|
|||||||
"_ifstmts_jump": ifstmts_jump,
|
"_ifstmts_jump": ifstmts_jump,
|
||||||
"and": and_check,
|
"and": and_check,
|
||||||
"ifelsestmt": ifelsestmt,
|
"ifelsestmt": ifelsestmt,
|
||||||
|
"ifelsestmtl": ifelsestmt,
|
||||||
"iflaststmt": iflaststmt,
|
"iflaststmt": iflaststmt,
|
||||||
"iflaststmtl": iflaststmt,
|
"iflaststmtl": iflaststmt,
|
||||||
"ifstmt": ifstmt,
|
"ifstmt": ifstmt,
|
||||||
@@ -1012,6 +1013,7 @@ class Python37BaseParser(PythonParser):
|
|||||||
self.check_reduce["while1elsestmt"] = "noAST"
|
self.check_reduce["while1elsestmt"] = "noAST"
|
||||||
self.check_reduce["_ifstmts_jump"] = "AST"
|
self.check_reduce["_ifstmts_jump"] = "AST"
|
||||||
self.check_reduce["ifelsestmt"] = "AST"
|
self.check_reduce["ifelsestmt"] = "AST"
|
||||||
|
self.check_reduce["ifelsestmtl"] = "AST"
|
||||||
self.check_reduce["iflaststmt"] = "AST"
|
self.check_reduce["iflaststmt"] = "AST"
|
||||||
self.check_reduce["iflaststmtl"] = "AST"
|
self.check_reduce["iflaststmtl"] = "AST"
|
||||||
self.check_reduce["ifstmt"] = "AST"
|
self.check_reduce["ifstmt"] = "AST"
|
||||||
|
@@ -25,13 +25,12 @@ IFELSE_STMT_RULES = frozenset(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
"ifelsestmtc",
|
"ifelsestmtl",
|
||||||
(
|
(
|
||||||
"testexpr",
|
"testexpr",
|
||||||
"c_stmts_opt",
|
"c_stmts_opt",
|
||||||
"jump_forward_else",
|
"jump_forward_else",
|
||||||
"else_suitec",
|
"else_suitec",
|
||||||
"\\e__come_froms",
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
(
|
(
|
||||||
|
Reference in New Issue
Block a user