Beispiel #1
0
 def p_continue_statement_2(self, p):
     """continue_statement : CONTINUE identifier SEMI
                           | CONTINUE identifier auto_semi
     """
     p[0] = ast.Continue(p[2],lineno=p.lineno(2))
Beispiel #2
0
 def p_continue_statement_1(self, p):
     """continue_statement : CONTINUE SEMI
                           | CONTINUE auto_semi
     """
     p[0] = ast.Continue(lineno=p.lineno(0))