A LISP interpreter written in ReasonML, targeting native and browser environments
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
docs
public
tests
.gitattributes
.gitignore
.travis.yml
LICENSE
Makefile
README.md
bsconfig.json
circle.yml
jbuild-ignore
lisp_re.install
lisp_re.opam
package.json
prog.scm
test-with-version.sh
yarn.lock

README.md

lisp.re

A Lisp in Reason. Based on (How to Write a (Lisp) Interpreter (in Python))

lisp.re> (begin (define r 10) (* pi (* r r)))
=> 314.159265359

lisp.re> (define square (lambda (x) (* x x)))
=>
lisp.re> (square 2)
=> 4

The main source can be found in this file

Try it in the browser

This codebase can be built for both Javascript and native targets.

web

To build this repo for the Javascript/web target, first check it out, then:

yarn
yarn dev

Then open http://localhost:1234/

native

Clone the repo and run these commands from within the project:

opam update # get the latest opam packages data. Skip this optionally
# opam will read into the `opam` file and add the other dependencies
opam install reason
opam install merlin
opam install re
make build    # build/rebuild your files

Run:

./_build/install/default/bin/lisp