Beispiel #1
0
        public FunctionExpressionWalker(ExternalVariables parserVariables, FunctionExpression function)
        {
            if (function == null)
            {
                throw new ArgumentNullException();
            }

            if (!function.IsValid)
            {
                throw new ArgumentException("Function must be valid.");
            }

            processStack    = function.InstructionsInstance;
            ParserVariables = parserVariables;
            ValueStack      = new Stack <VauleExpression>();
            Results         = new Queue <VauleExpression>();
        }
Beispiel #2
0
 public Interpreter(ExpressionParser parser)
 {
     this.parser     = parser;
     ParserVariables = new ExternalVariables();
     //externalVariables = new Dictionary<string, VauleExpression>();
 }