Regularize "or" so args are in 1..2 and ...

correct "return None" semantic action
This commit is contained in:
rocky
2020-05-18 22:54:08 -04:00
parent d7c3b8454b
commit 7fa851765d
3 changed files with 5 additions and 3 deletions

View File

@@ -956,8 +956,8 @@ class Python37Parser(Python37BaseParser):
and ::= expr JUMP_IF_FALSE_OR_POP expr come_from_opt
and ::= expr jifop_come_from expr
pjit_come_from ::= POP_JUMP_IF_TRUE COME_FROM
or ::= expr pjit_come_from expr
expr_pjit_come_from ::= expr POP_JUMP_IF_TRUE COME_FROM
or ::= expr_pjit_come_from expr
## Note that "jmp_false" is what we check on in the "and" reduce rule.
and ::= expr jmp_false expr COME_FROM