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(); }
//BaseFunction loop; public Interpreter(Executable exe, int maxStack = 1024, int maxFrames = 24) { this.exe = exe; state = new ExecutionState(exe, maxStack, maxFrames); }