Skip to content

jsdf/lisp.re

Repository files navigation

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

About

A LISP interpreter written in ReasonML, targeting native and browser environments

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published