示例#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))