Пример #1
0
 def visitDowhile_statement(self, ctx: MCParser.Dowhile_statementContext):
     stmt = [self.visit(x) for x in ctx.statement()]
     exp = self.visit(ctx.expression())
     return Dowhile(stmt, exp)
 def visitDowhile_statement(self,ctx:MCParser.Dowhile_statementContext):
     lst_statement=[self.visit(item) for item in ctx.statement()]
     return Dowhile(lst_statement,self.visit(ctx.expression()))
Пример #3
0
 def visitDowhile_statement(self, ctx: MCParser.Dowhile_statementContext):
     return Dowhile([self.visit(stm) for stm in ctx.statement()],
                    self.visit(ctx.expression()))