Exemplo n.º 1
0
 def visitVarDec(self, ctx: MPParser.VarDecContext):
     listVarDec = []
     for listoftype in ctx.listOfType():
         listID, types = self.visit(listoftype)
         for id in listID:
             listVarDec += [VarDecl(id, types)]
     return listVarDec
Exemplo n.º 2
0
 def visitVarDec(self, ctx:MPParser.VarDecContext):
     listOfType = ctx.listOfType()
     listOfVarDecl = []
     for x in listOfType:
         listid, types = self.visit(x)
         for id in listid:
             listOfVarDecl.append(VarDecl(Id(id),types))       
     return (listOfVarDecl)