예제 #1
0
 /// <summary>
 /// Initialize
 /// </summary>
 /// <param name="type">The function type</param>
 /// <param name="val">The object</param>
 public LFunction(LFunctionType type, object val)
 {
     this.Value = val;
     this.Type = type;
 }
예제 #2
0
 public object VisitLambda(LambdaExpr expr)
 {
     var funcType = new LFunctionType();
     funcType.Name = expr.Expr.Meta.Name;
     funcType.FullName = funcType.Name;
     var func = new LFunction(expr.Expr);
     func.Type = funcType;
     return func;
 }