def visitWhile_statement(self,ctx:MPParser.While_statementContext): return [While(self.visit(ctx.exp()),self.visit(ctx.statement()))]
def visitWhile_statement(self, ctx: MPParser.While_statementContext): stmt = self.visit(ctx.statement()) listStmt = stmt if type(stmt) == list else [stmt] return While(self.visit(ctx.exp()), listStmt)