NT passtmt -> pass to match AST

This commit is contained in:
rocky
2017-12-14 05:31:17 -05:00
parent 3ce5e0ab0e
commit 4cd4ad22b6
5 changed files with 10 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ class PythonParser(GenericASTBuilder):
def p_stmt(self, args):
"""
passstmt ::=
pass ::=
_stmts ::= stmt+
@@ -235,7 +235,7 @@ class PythonParser(GenericASTBuilder):
lastc_stmt ::= ifelsestmtc
c_stmts_opt ::= c_stmts
c_stmts_opt ::= passstmt
c_stmts_opt ::= pass
l_stmts ::= _stmts
l_stmts ::= return_stmts
@@ -249,7 +249,7 @@ class PythonParser(GenericASTBuilder):
lastl_stmt ::= tryelsestmtl
l_stmts_opt ::= l_stmts
l_stmts_opt ::= passstmt
l_stmts_opt ::= pass
suite_stmts ::= _stmts
suite_stmts ::= return_stmts
@@ -258,7 +258,7 @@ class PythonParser(GenericASTBuilder):
suite_stmts_opt ::= suite_stmts
# passtmt is needed for semantic actions to add "pass"
suite_stmts_opt ::= passstmt
suite_stmts_opt ::= pass
else_suite ::= suite_stmts
else_suitel ::= l_stmts