summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2022-07-17 19:22:16 -0400
committerBen Sima <ben@bsima.me>2022-07-17 19:22:16 -0400
commit86f9e46424d3c07f211fae332b93b8995ae1c91b (patch)
treec208ba1fd0c12831a93a99328fd12d5ea856a71b
parent7e59ce132303837b05aaa5f173ea2050ac0203f6 (diff)
Add support for SBCL repl
-rw-r--r--Biz/Bild.nix2
-rw-r--r--Biz/Bild/Example.lisp3
-rwxr-xr-xBiz/Ide/repl5
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