Skip to content

jmgimeno/butterp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Butterp

A simple lisp implementation in Java.

Dedicated to the memory of Josep Mª Ribó.

Build & Run

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.

WebRepl

An instance of the simple WebRepl application is deployed at https://butterp.herokuapp.com

List of Primitives

Atoms

  • t
  • nil
  • integers
  • symbols

Special forms

  • (define symbol sexpr)
  • (quote sexpr)
  • (lambda (args) body)
  • (if cond-sexpr then-sexpr else-sexpr)
  • (macro (arg) body)

Primitive functions

  • (car list)
  • (cdr list)
  • (cons sexpr list)
  • (eq sexpr sexpr)
  • (add integer integer)
  • (mult integer integer)
  • (eval sexpr)
  • (apply fn-sexpr args-list)

About

A simple lisp implementation in Java.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published