예제 #1
0
파일: parser.py 프로젝트: sola92/slimit
 def p_break_statement_2(self, p):
     """break_statement : BREAK identifier SEMI
                        | BREAK identifier auto_semi
     """
     p[0] = ast.Break(p[2],lineno=p.lineno(2))
예제 #2
0
파일: parser.py 프로젝트: sola92/slimit
 def p_break_statement_1(self, p):
     """break_statement : BREAK SEMI
                        | BREAK auto_semi
     """
     p[0] = ast.Break(lineno=p.lineno(0))