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
This codebase can be built for both Javascript and native targets.
To build this repo for the Javascript/web target, first check it out, then:
yarn
yarn dev
Then open http://localhost:1234/
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