예제 #1
0
 public ExecutionState(Executable exe, int maxStack, int maxFrames)
 {
     this.exe = exe;
     Stack    = new ValueType[maxStack];
     Frames   = (from i in Enumerable.Range(0, maxFrames) select new ExecutionFrame()).ToArray();
 }
예제 #2
0
        //BaseFunction loop;

        public Interpreter(Executable exe, int maxStack = 1024, int maxFrames = 24)
        {
            this.exe = exe;
            state    = new ExecutionState(exe, maxStack, maxFrames);
        }