Two small wrapper script to make dealing with SBCL more intuitive for newcomers to LISP.
lispi
(+ 1 2)
Then press ctrl-d to exit.
Create hello.cl with this content:
(defun main ()
(write-line "Hello, World!"))Run the main function in hello.cl with:
lisp hello.cl
The function to run can also be specified explicitly:
lisp hello.cl main
- For the
lispcommand, the first argument is the filename, the second (optional) argument is the name of the function to evaluate.mainis the default function name. - For the
lispicommand, the first (optional) argument is the name of a file to load.
- SBCL, with
/usr/bin/sbclavailable. - A POSIX shell, with
/bin/shavailable (should come by default with all distros).
Just install the lisp package from AUR.
With the correct permissions:
PREFIX=/usr make install
- Version: 1.2.0
- License: GPL2
- Author: Alexander F. Rødseth <[email protected]>