@Override public void exitVirtdataCall(VirtDataParser.VirtdataCallContext ctx) { FunctionCall topFunctionCall = calls.pop(); if (calls.empty()) { flows.peek().getLastExpression().setCall(topFunctionCall); } else { calls.peek().addFunctionArg(topFunctionCall); } callContexts.pop(); }
@Override public void exitVirtdataCall(VirtDataParser.VirtdataCallContext ctx) { FunctionCall topFunctionCall = calls.pop(); if (calls.empty()) { flows.peek().getLastExpression().setCall(topFunctionCall); } else { calls.peek().addFunctionArg(topFunctionCall); } callContexts.pop(); }
@Override public void exitMetagenCall(MetagenParser.MetagenCallContext ctx) { FunctionCall topFunctionCall = calls.pop(); if (calls.empty()) { flows.peek().getLastExpression().setCall(topFunctionCall); } else { calls.peek().addFunctionArg(topFunctionCall); } callContexts.pop(); }
@Override public void exitMetagenCall(LambdasParser.MetagenCallContext ctx) { FunctionCall topFunctionCall = calls.pop(); if (calls.empty()) { flows.peek().getLastExpression().setCall(topFunctionCall); } else { calls.peek().addFunctionArg(topFunctionCall); } callContexts.pop(); }
@Override public void exitIntegerValue(VirtDataParser.IntegerValueContext ctx) { calls.peek().addFunctionArg(new IntegerArg(Integer.valueOf(ctx.getText()))); }
@Override public void exitFloatValue(MetagenParser.FloatValueContext ctx) { calls.peek().addFunctionArg(new FloatArg(Float.valueOf(ctx.getText()))); }
@Override public void exitIntegerValue(MetagenParser.IntegerValueContext ctx) { calls.peek().addFunctionArg(new IntegerArg(Integer.valueOf(ctx.getText()))); }
@Override public void exitIntegerValue(VirtDataParser.IntegerValueContext ctx) { calls.peek().addFunctionArg(new IntegerArg(Integer.valueOf(ctx.getText()))); }
@Override public void exitFloatValue(VirtDataParser.FloatValueContext ctx) { calls.peek().addFunctionArg(new FloatArg(Float.valueOf(ctx.getText()))); }
@Override public void exitFloatValue(LambdasParser.FloatValueContext ctx) { calls.peek().addFunctionArg(new FloatArg(Float.valueOf(ctx.getText()))); }
@Override public void exitLongValue(VirtDataParser.LongValueContext ctx) { calls.peek().addFunctionArg(new LongArg(Long.valueOf(ctx.getText().substring(0,ctx.getText().length()-1)))); }
@Override public void exitDoubleValue(VirtDataParser.DoubleValueContext ctx) { calls.peek().addFunctionArg(new DoubleArg(Double.valueOf(ctx.getText().substring(0,ctx.getText().length()-1)))); }
@Override public void exitLongValue(VirtDataParser.LongValueContext ctx) { calls.peek().addFunctionArg(new LongArg(Long.valueOf(ctx.getText().substring(0,ctx.getText().length()-1)))); }
@Override public void exitDoubleValue(VirtDataParser.DoubleValueContext ctx) { calls.peek().addFunctionArg(new DoubleArg(Double.valueOf(ctx.getText().substring(0,ctx.getText().length()-1)))); }
@Override public void exitStringValue(LambdasParser.StringValueContext ctx) { calls.peek().addFunctionArg(new StringArg(ctx.getText().substring(1, ctx.getText().length() - 1))); }
@Override public void exitStringValue(MetagenParser.StringValueContext ctx) { calls.peek().addFunctionArg(new StringArg(ctx.getText().substring(1, ctx.getText().length() - 1))); }
@Override public void exitStringValue(VirtDataParser.StringValueContext ctx) { calls.peek().addFunctionArg(new StringArg(ctx.getText().substring(1, ctx.getText().length() - 1))); }
@Override public void exitRef(VirtDataParser.RefContext ctx) { calls.peek().addFunctionArg(new RefArg(ctx.ID().getText())); }
@Override public void exitRef(MetagenParser.RefContext ctx) { calls.peek().addFunctionArg(new RefArg(ctx.ID().getText())); }
@Override public void exitRef(LambdasParser.RefContext ctx) { calls.peek().addFunctionArg(new RefArg(ctx.ID().getText())); }