예제 #1
0
        public static void Initialize()
        {
            var interpreter = new Interpreter();
            var global = interpreter.CurrentScope;
            var memory = new ResultMemory(global);

            global.AddBinding(new Restart(global));
            global.AddBinding(new Quit(global));

            Program.SetState(interpreter, memory);

            if(Arguments.UseUserConfig)
                LoadUserConfig();
        }
예제 #2
0
파일: Program.cs 프로젝트: tormaroe/mist
 public static void SetState(Interpreter i, ResultMemory r)
 {
     interpreter = i;
     memory = r;
 }