示例#1
0
        private Function Resolve(string Token, IEnumerable <Expression> Args)
        {
            Function resolve = context.LookupFunction(Token, Args).SingleOrDefault();

            if (!ReferenceEquals(resolve, null))
            {
                return(resolve);
            }
            else
            {
                return(UnknownFunction.New(Token, Args.Count()));
            }
        }
示例#2
0
 public static Call New(string Target, params Expression[] Args)
 {
     return(new Call(UnknownFunction.New(Target, Args.Length), Args));
 }
示例#3
0
 /// <summary>
 /// Create a new Call expression to an unknown function.
 /// </summary>
 /// <param name="Target">Name of the function to call.</param>
 /// <param name="Args">Arguments for the call.</param>
 /// <returns>Constructed Call expression.</returns>
 public static Call New(string Target, IEnumerable <Expression> Args)
 {
     Args = Args.Buffer();
     return(new Call(UnknownFunction.New(Target, Args.Count()), Args));
 }