A better REPL for SBCL. It handles errors greacefully, is not too verbose, and has readline capabilities, including multiline input and reset.
For most cases, calling
./install.sh should suffice. It will
/usr/local/bin. If you are using Mac and having
cl-readline see the installation notes for
You should be able to launch
sbcli by just typing
sbcli. Once you’re in the
REPL, you can edit normally with readline capabilities. Hitting tab will
autocomplete (note that if there is more than one possibility, you’ll have to
hit tab twice).
:help will give you an overview over all the available special cases
and give you an overview over what you’ve defined.
:h symbol will enter inspection mode for a symbol. Typing
exits inspection mode.
CTRL-C will exit the REPL.
:r resets the environment.
:d symbol dumps the disassembly of a symbol.
:s filename will save all of the expressions that were typed and
evaluated to the file specified, in the format:
(+ 1 2) ; => 3 (* 6 10) ; => 60
Of course, depending on your result, this can result in very long lines, or break if your result contains newlines. Use at your own peril for now!
If you want you can add customizations to
sbcli. On startup
it will load a file called
.sbclirc in your home directory
if it exists. You can execute arbitrary code there, two of
the more interesting values to set are
Check out an example resource file