Some grammar cleanup

This commit is contained in:
rocky
2016-05-09 11:55:38 -04:00
parent 41f9e9e53e
commit 8b9e0eca42
5 changed files with 6 additions and 5 deletions

View File

@@ -484,12 +484,11 @@ def get_python_parser(version, debug_parser, compile_mode='exec'):
return p
class PythonParserSingle(PythonParser):
def p_call_stmt(self, args):
def p_call_stmt_single(self, args):
'''
# single-mode compilation. Eval-mode interactive compilation
# drops the last rule.
call_stmt ::= expr POP_TOP
call_stmt ::= expr PRINT_EXPR
'''