3.7 ifelstmtl reduction rule checking

This commit is contained in:
rocky
2020-02-08 13:47:05 -05:00
parent 1d7085e5d2
commit e2504c2421
2 changed files with 3 additions and 2 deletions

View File

@@ -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"

View File

@@ -25,13 +25,12 @@ IFELSE_STMT_RULES = frozenset(
),
),
(
"ifelsestmtc",
"ifelsestmtl",
(
"testexpr",
"c_stmts_opt",
"jump_forward_else",
"else_suitec",
"\\e__come_froms",
),
),
(