Пример #1
0
        void Start()
        {
            Util.require("arcadia.core");
            Util.require("pjago.repl");

            carret_return = false;
            replSocket    = (UdpClient)RT.var("pjago.repl", "start-server").invoke(11211);
            log           = RT.var("arcadia.core", "log");
            repl_rfn      = RT.var("pjago.repl", "repl-eval-print");
            map           = (IPersistentMap)RT.var("pjago.repl", "env-map").invoke();
            result        = Keyword.intern(Symbol.create("result"));
            env           = Keyword.intern(Symbol.create("env"));

            if (ConsoleFont == null)
            {
                ConsoleFont = Font.CreateDynamicFontFromOSFont("Courier New", 16);
                Debug.LogWarning("Command Console Warning: Please assign a font.");
            }

            command_text        = "";
            cached_command_text = command_text;
            last_command_text   = command_text;
            Assert.AreNotEqual(ToggleHotkey.ToLower(), "return", "Return is not a valid ToggleHotkey");

            SetupWindow();
            SetupInput();
            SetupLabels();

            Shell.RegisterCommands();

            if (IssuedError)
            {
                Log(TerminalLogType.Error, "Error: {0}", Shell.IssuedErrorMessage);
            }

            foreach (var command in Shell.Commands)
            {
                Autocomplete.Register(command.Key);
            }

            if (replSocket != null)
            {
                Log("REPL is listening on " + replSocket.Client.LocalEndPoint);
            }

            Debug.Log("Arcadia Started!");
        }
Пример #2
0
 public static void LoadLiterals()
 {
     // this has to happen here becasue the repl
     // binds a thread local *data-readers*
     Util.require("arcadia.data");
 }
Пример #3
0
 public static void StartEditorCallbacks()
 {
     Util.require("arcadia.internal.editor-callbacks");
     EditorCallbacks.Initialize();
 }
Пример #4
0
 static void LoadSocketREPL()
 {
     Util.require("arcadia.internal.socket-repl");
     RT.var("arcadia.internal.socket-repl", "server-reactive").invoke();
 }
Пример #5
0
 public static void StartNudge()
 {
     Util.require("arcadia.internal.nudge");
 }
Пример #6
0
 public static void LoadConfig()
 {
     Util.require("arcadia.internal.config");
     RT.var("arcadia.internal.config", "update!").invoke();
 }
Пример #7
0
 private static void InitializeLoadPathExtensions()
 {
     Util.require("arcadia.internal.leiningen");
 }