public Scope(Scope parent) { this.parent = parent; variables = new Dictionary<string, object>(); functions = new Dictionary<string, Function>(); }
public void Load(CompiledProgram program) { stack = new Stack<object>(MaxStackSize); scope = new Scope(null); bytecodeStack = new Stack<Bytecode>(); currentBytecode = program.GetBytecode(); Console.WriteLine("Program loaded"); }