Esempio n. 1
0
        public Scope(Scope parent)
        {
            this.parent = parent;

            variables = new Dictionary<string, object>();
            functions = new Dictionary<string, Function>();
        }
Esempio n. 2
0
        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");
        }