public override Invokee VisitConstant(FP.ConstantExpression expression, SymbolTable scope) { return(InvokeeFactory.Return(ElementNode.ForPrimitive(expression.Value))); }
public override Invokee VisitConstant(FP.ConstantExpression expression, SymbolTable scope) { return(InvokeeFactory.Return(new ConstantValue(expression.Value))); }
//public void Visit(Expression expression) //{ // if (expression is ConstantExpression) // VisitConstant((ConstantExpression)expression); // else if (expression is FunctionCallExpression) // VisitFunctionCall((FunctionCallExpression)expression); // else if (expression is LambdaExpression) // VisitLambda((LambdaExpression)expression); // else if (expression is NewNodeListInitExpression) // VisitNewNodeListInit((NewNodeListInitExpression)expression); // else if (expression is VariableRefExpression) // VisitVariableRef((VariableRefExpression)expression); //} public abstract T VisitConstant(ConstantExpression expression, SymbolTable scope);