Ejemplo n.º 1
0
		public EvaluationSystem(SubSystems subsystems)
			: base(subsystems)
		{
			m_expressioncache = new KeyedCollection<String, Expression>(x => x.ToString(), StringComparer.OrdinalIgnoreCase);
			m_tokenizer = new Tokenizer();
			m_treebuilder = new TreeBuilder(this);
			m_compiler = new Compiler();

			//var exp = CreateExpression("0.0 = [-10, 10]");
			//var result = exp.Evaluate(null);
		}
Ejemplo n.º 2
0
        public EvaluationSystem(SubSystems subsystems)
            : base(subsystems)
        {
            m_expressioncache = new KeyedCollection <String, Expression>(x => x.ToString(), StringComparer.OrdinalIgnoreCase);
            m_tokenizer       = new Tokenizer();
            m_treebuilder     = new TreeBuilder(this);
            m_compiler        = new Compiler();

            //var exp = CreateExpression("0.0 = [-10, 10]");
            //var result = exp.Evaluate(null);
        }