def visitArray_literal(self, ctx: GrammarParser.Array_literalContext):
     types = []
     cte_values_array = []
     for i in range(len(ctx.expression())):
         tyype, cte_value = self.visit(ctx.expression(i))
         types += [tyype]
         cte_values_array += [cte_value]
     return types, cte_values_array
Пример #2
0
 def visitArray_literal(self, ctx: GrammarParser.Array_literalContext):
     eltos = []
     for i in range(len(ctx.expression())):
         tyype, value, is_constant = self.visit(ctx.expression(i))
         eltos += [(tyype, value, is_constant)]
     return eltos