示例#1
0
 public object visitLambdaExpr(Expr.Lambda expr)
 {
     ResolveFunction(expr.parameters, expr.body, FunctionType.LAMBDA);
     return(null);
 }
示例#2
0
 public string visitLambdaExpr(Expr.Lambda expr)
 {
     return(parenthesize("LAMBDA"));
 }
示例#3
0
 public LoxLambda(Expr.Lambda lambda, Environment closure)
 {
     this.lambda  = lambda;
     this.closure = closure;
 }
示例#4
0
 public object visitLambdaExpr(Expr.Lambda expr)
 {
     return(new LoxLambda(expr, environment));
 }