From 86f9e46424d3c07f211fae332b93b8995ae1c91b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Sun, 17 Jul 2022 19:22:16 -0400 Subject: Add support for SBCL repl --- Biz/Bild.nix | 2 ++ Biz/Bild/Example.lisp | 3 +++ Biz/Ide/repl | 5 +++++ 3 files changed, 10 insertions(+) create mode 100644 Biz/Bild/Example.lisp diff --git a/Biz/Bild.nix b/Biz/Bild.nix index fdaba0e..cfdd5b8 100644 --- a/Biz/Bild.nix +++ b/Biz/Bild.nix @@ -154,6 +154,8 @@ in rec { python38Packages.black python38Packages.pylint rustc + sbcl + lispPackages.swank shellcheck wemux ] ++ lib.optional nixpkgs.stdenv.isLinux [ diff --git a/Biz/Bild/Example.lisp b/Biz/Bild/Example.lisp new file mode 100644 index 0000000..c07fcba --- /dev/null +++ b/Biz/Bild/Example.lisp @@ -0,0 +1,3 @@ +; : out helloworld.exe +(defun main (args) + (print "hello world")) diff --git a/Biz/Ide/repl b/Biz/Ide/repl index 3fc8a08..836bed9 100755 --- a/Biz/Ide/repl +++ b/Biz/Ide/repl @@ -24,6 +24,11 @@ echo "scheme repl not supported yet: $target" exit 1 ;; + *.lisp) + swank-lisp-launcher.sh \ + --eval "(asdf:load-system 'swank)" \ + --eval "(swank:create-server :dont-close t)" + ;; *) echo "unsupported target: $target" exit 1 -- cgit v1.2.3