diff options
author | Ben Sima <ben@bsima.me> | 2022-07-17 19:22:16 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2022-07-17 19:22:16 -0400 |
commit | 86f9e46424d3c07f211fae332b93b8995ae1c91b (patch) | |
tree | c208ba1fd0c12831a93a99328fd12d5ea856a71b /Biz | |
parent | 7e59ce132303837b05aaa5f173ea2050ac0203f6 (diff) |
Add support for SBCL repl
Diffstat (limited to 'Biz')
-rw-r--r-- | Biz/Bild.nix | 2 | ||||
-rw-r--r-- | Biz/Bild/Example.lisp | 3 | ||||
-rwxr-xr-x | Biz/Ide/repl | 5 |
3 files changed, 10 insertions, 0 deletions
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 |