示例#1
0
文件: Scope.cs 项目: Spanfile/Englang
        public Scope(Scope parent)
        {
            this.parent = parent;

            variables = new Dictionary<string, object>();
            functions = new Dictionary<string, Function>();
        }
示例#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");
        }