示例#1
0
 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)));
 }
示例#3
0
        //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);