Exemple #1
0
 def visitStmt(self, ctx: MPParser.StmtContext):
     if ctx.breakstmt():
         return Break()
     elif ctx.continuestmt():
         return Continue()
     else:
         return self.visit(ctx.getChild(0))
 def visitStmt(self, ctx: MPParser.StmtContext):
     return self.visit(ctx.getChild(0))
 def visitStmt(self, ctx: MPParser.StmtContext):
     # if ctx.stmtAssign():
     #     return self.visit(ctx.stmtAssign())
     return self.visit(ctx.getChild(0))
 def visitStmt(self, ctx: MPParser.StmtContext):
     '''stmt: assignstmt | ifstmt | whilestmt | forstmt | breakstmt | continuestmt | returnstmt | compoundstmt | withstmt | callstmt;'''
     return self.visit(ctx.getChild(0))