Skip to content
/ lisp Public

Two small wrapper scripts for running Lisp files with Steel Bank Common Lisp

License

Notifications You must be signed in to change notification settings

xyproto/lisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lisp

Two small wrapper script to make dealing with SBCL more intuitive for newcomers to LISP.

Interactive use

lispi
(+ 1 2)

Then press ctrl-d to exit.

Running a file

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

Usage

  • 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.

Dependencies

  • SBCL, with /usr/bin/sbcl available.
  • A POSIX shell, with /bin/sh available (should come by default with all distros).

Installation

Arch Linux

Just install the lisp package from AUR.

From source

With the correct permissions:

PREFIX=/usr make install

General information

About

Two small wrapper scripts for running Lisp files with Steel Bank Common Lisp

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published