A simple lisp implementation in Java.
Dedicated to the memory of Josep Mª Ribó.
This project uses maven, so to build it you can do:
mvn package
This creates a jar file in the target directory. To run it, you do:
java -jar target/butterp-1.0-SNAPSHOT.jar
To exit the REPL type :exit
at the prompt.
An instance of the simple WebRepl application is deployed at https://butterp.herokuapp.com
- t
- nil
- integers
- symbols
- (define symbol sexpr)
- (quote sexpr)
- (lambda (args) body)
- (if cond-sexpr then-sexpr else-sexpr)
- (macro (arg) body)
- (car list)
- (cdr list)
- (cons sexpr list)
- (eq sexpr sexpr)
- (add integer integer)
- (mult integer integer)
- (eval sexpr)
- (apply fn-sexpr args-list)