Add 3.7 "testfalsel" for looping conditions

This commit is contained in:
rocky
2020-01-14 18:41:39 -05:00
parent e2cbf5f4bd
commit 5f230fa177
6 changed files with 22 additions and 3 deletions

View File

@@ -999,6 +999,7 @@ class Python37BaseParser(PythonParser):
"ifstmtl": ifstmt,
"or": or_check,
"testtrue": testtrue,
"testfalsel": testtrue,
"while1elsestmt": while1elsestmt,
"while1stmt": while1stmt,
"try_elsestmtl38": tryelsestmtl3,
@@ -1019,6 +1020,7 @@ class Python37BaseParser(PythonParser):
self.check_reduce["import_from37"] = "AST"
self.check_reduce["or"] = "AST"
self.check_reduce["testtrue"] = "tokens"
self.check_reduce["testfalsel"] = "tokens"
return
def custom_classfunc_rule(self, opname, token, customize, next_token):