LAPIN

Last update 2010/02/03

LAPIN is a dialect of lisp written in Java, which supports both interpreter and compiler. Some features (data types, functions, ...) given to LAPIN come from MACLISP, for one of the main goal of this project is to make the RABBIT compiler run under this lisp system.

Current release

Source distribution is available: Lapin is hosted on github.

Getting started

Compiling from source
You will need: To compile, type:
 ant dist
This will create files for the binary distribution in the 'dist' directory.
Run
 bin/lapin.sh (for Unix)
 bin/lapin.bat (for Windows)
in the 'dist' directory activates the REPL:
$ pwd
/PATH/TO/LAPIN_PRJ/dist
('/PATH/TO/LAPIN_PRJ' denotes a path to the directory
 in which the source distribution is extracted.)

$ bin/lapin.sh
hello!

;;; Compiles (and loads) the .lisp file 'dist/examples/fib.lisp'.
;;; This will create a .fasl file 'fib.fasl' in the 'dist/examples' directory.
USER> (load (compile-file "examples/fib"))

T

;;; Calculates (fib 30).
USER> (time (fib 30))
elapsed time: 271[msec]

832040

;;; type Ctrl-D to exit
USER> ^D
bye!

$
Dependencies
Dependent jars are downloaded from remote repository in the build process.
(See 'build.xml' for more information)
License
GNU General Public License, version 2
(See LICENSE.txt)

Available features

Available functions, special forms, and other objects are listed in this file.

Links


Home