def visitDowhile_statement(self, ctx: MCParser.Dowhile_statementContext):
     return Dowhile([self.visit(x) for x in ctx.statement()],
                    self.visit(ctx.exp()))
Beispiel #2
0
 def visitDowhile_statement(self, ctx: MCParser.Dowhile_statementContext):
     stmt = [self.visit(x) for x in ctx.statement()]
     exp = self.visit(ctx.exp())
     return Dowhile(stmt, exp)