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.
29 lines
1.1 KiB
Common Lisp
29 lines
1.1 KiB
Common Lisp
;;; LISPLINGS
|
|
;;;
|
|
;;; This first exercise has no errors. It is here to show you the flow:
|
|
;;;
|
|
;;; 1. Lisplings is watching this file. Every time you save it, the
|
|
;;; exercise runs again in the terminal.
|
|
;;; 2. The exercises that follow contain an error: the file does not
|
|
;;; load, or a check at the bottom fails. Your job is to fix them.
|
|
;;; 3. When everything passes, press n in this terminal to move on.
|
|
;;; 4. Stuck? Press h for a hint.
|
|
;;;
|
|
;;; Try it now: add a line to the banner below, save the file, and
|
|
;;; watch what happens in the terminal.
|
|
|
|
(format t "~%")
|
|
(format t " /~%")
|
|
(format t " /~%")
|
|
(format t " /~%")
|
|
(format t " /\\~%")
|
|
(format t " / \\~%")
|
|
(format t "/ \\~%")
|
|
(format t "~%")
|
|
(format t " Welcome to Lisplings!~%")
|
|
(format t " Small exercises to get you used to reading and~%")
|
|
(format t " writing Common Lisp code.~%~%")
|
|
(format t "This exercise is exercises/00_intro/intro1.lisp.~%")
|
|
(format t "Edit it in your editor of choice and save; the output~%")
|
|
(format t "appears here automatically. Press n when you are ready.~%")
|