/// <summary> /// Constructs a StackFrame object /// </summary> /// <param name="text">the text to be processed (formatted as a shell command)</param> /// <param name="exec">the execution that called the function</param> public TFunctionData(Executer exec, string text) : this(exec) { SetAll(text); }
/// <summary> /// Constructs a StackFrame object /// </summary> /// <param name="exec">the execution that called the function</param> public TFunctionData(Executer exec) { StackExecuter = exec; }
public Evaluator(Executer exec) { CurrentExecution = exec; }
public Evaluator(StringSegment expression, Executer exec) { CurrentExecution = exec; Expression = expression; }
/// <summary> /// Static version of the Expression Evaluator /// </summary> /// <param name="expressionString">expression to be evaluated</param> /// <param name="exec">the current execution</param> /// <returns></returns> public static object Evaluate(StringSegment expressionString, Executer exec) { Evaluator expression = new Evaluator(expressionString, exec); return(expression.Evaluate()); }