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