LOAD_ASSERT can also be an expr

This may have the undesirable property that assert statements might get
tagged with equivalant low-level Python code that uses "raise
AssertionError", but so be it.

Fixes #103
This commit is contained in:
rocky
2017-04-22 20:01:26 -04:00
parent 7755dddd94
commit b35546157f
2 changed files with 4 additions and 0 deletions

View File

@@ -442,6 +442,7 @@ class PythonParser(GenericASTBuilder):
def p_expr(self, args):
'''
expr ::= _mklambda
expr ::= LOAD_ASSERT
expr ::= LOAD_FAST
expr ::= LOAD_NAME
expr ::= LOAD_CONST