public static Delegate CompileLambda(Node n)
 {
     var compiler = new SchemeExpressionCompiler();
     var expr = (LambdaExpression)compiler.ToExpr(n);
     if (expr == null) return null;
     return expr.Compile();
 }
Exemple #2
0
        public static Delegate CompileLambda(Node n)
        {
            var compiler = new SchemeExpressionCompiler();
            var expr     = (LambdaExpression)compiler.ToExpr(n);

            if (expr == null)
            {
                return(null);
            }
            return(expr.Compile());
        }
Exemple #3
0
        public static void Test(string input, params object[] args)
        {
            var r = SchemeExpressionCompiler.CompileLambda(input);

            r.DynamicInvoke(args);
        }