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