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
lisp
command, the first argument is the filename, the second (optional) argument is the name of the function to evaluate.main
is the default function name. - For the
lispi
command, the first (optional) argument is the name of a file to load.
- SBCL, with
/usr/bin/sbcl
available. - A POSIX shell, with
/bin/sh
available (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]>