示例#1
0
 /// <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);
 }
示例#2
0
 /// <summary>
 /// Constructs a StackFrame object
 /// </summary>
 /// <param name="exec">the execution that called the function</param>
 public TFunctionData(Executer exec)
 {
     StackExecuter = exec;
 }
示例#3
0
 public Evaluator(Executer exec)
 {
     CurrentExecution = exec;
 }
示例#4
0
 public Evaluator(StringSegment expression, Executer exec)
 {
     CurrentExecution = exec;
     Expression       = expression;
 }
示例#5
0
        /// <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());
        }