3.7+ "or" disambiguation and assert2 handling

This commit is contained in:
rocky
2020-01-10 20:44:28 -05:00
parent eba8f04e29
commit 6cef42f6c7
5 changed files with 33 additions and 6 deletions

View File

@@ -760,6 +760,10 @@ class Python37Parser(Python37BaseParser):
stmt ::= classdefdeco
classdefdeco ::= classdefdeco1 store
# In 3.7 there are some LOAD_GLOBALs we don't convert to LOAD_ASSERT
stmt ::= assert2
assert2 ::= expr jmp_true LOAD_GLOBAL expr CALL_FUNCTION_1 RAISE_VARARGS_1
expr ::= LOAD_ASSERT
ifstmt ::= testexpr _ifstmts_jump