Lisplings: Rustlings-style exercises for Common Lisp

70 exercises in 20 chapters, from first s-expressions to restarts,
macros, CLOS, and a tiny Lisp interpreter. Each exercise ships
broken with a solved twin and a hint. Includes a watch-mode runner,
a plain-CL check harness, a nix flake, and verification tooling.
All plain SBCL, no dependencies.
This commit is contained in:
venomade committed 2026-11-22 03:30:19 +00:00
commit 4df60ead93
172 files changed
+4403

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Lisplings wrapper installed by the nix package.
set -eu
exec @sbcl@/bin/sbcl --noinform --no-sysinit --no-userinit \
--script @out@/lib/lisplings/src/main.lisp "$@"
+30
View File
@@ -0,0 +1,30 @@
{
lib,
stdenv,
sbcl,
src,
}:
stdenv.mkDerivation {
pname = "lisplings";
version = "0.1.0";
inherit src sbcl;
installPhase = ''
runHook preInstall
mkdir -p $out/lib/lisplings $out/bin
cp -r $src/src $src/exercises $src/solutions $src/info.sexp $out/lib/lisplings/
substituteAll ${./lisplings.sh} $out/bin/lisplings
chmod +x $out/bin/lisplings
runHook postInstall
'';
meta = {
description = "Small exercises to get you used to reading and writing Common Lisp code";
mainProgram = "lisplings";
};
}