public ASTVisitor(RuntimeKernel kernel, FireMLRoot root)
 {
     this.kernel = kernel;
     this.root = root;
     exprProcessor = new ExprProcessor(kernel);
     varRefProcessor = new StrVarRefProcessor(kernel);
 }
Exemplo n.º 2
0
 public ASTVisitor(RuntimeKernel kernel, FireMLRoot root)
 {
     this.kernel     = kernel;
     this.root       = root;
     exprProcessor   = new ExprProcessor(kernel);
     varRefProcessor = new StrVarRefProcessor(kernel);
 }
        static void Main(string[] args)
        {
            string filepath = args[0];
            FileStream rootStream = new FileStream(filepath, FileMode.Open);
            BinaryFormatter bf = new BinaryFormatter();
            FireMLRoot root = bf.Deserialize(rootStream) as FireMLRoot;

            FuncCaller funcCaller = new FuncCaller();
            RuntimeKernel kernel = new RuntimeKernel(funcCaller, root);

            do
            {
                kernel.Next();
                Console.ReadKey(true);
            } while (!funcCaller.IsEnd);
        }
Exemplo n.º 4
0
 internal ExprProcessor(RuntimeKernel kernel)
 {
     this.kernel     = kernel;
     this.scopeStack = kernel.RuntimeData.ScopeStack;
 }
 internal ExprProcessor(RuntimeKernel kernel)
 {
     this.kernel = kernel;
     this.scopeStack = kernel.RuntimeData.ScopeStack;
 }
 internal StrVarRefProcessor(RuntimeKernel runtimeKernel)
 {
     this.runtimeKernel = runtimeKernel;
 }