コード例 #1
0
ファイル: Bootstrapper.cs プロジェクト: tormaroe/mist
        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;
 }