/mal-ocaml

Make-A-Lisp in OCaml

Primary LanguageOCamlOtherNOASSERTION

mal-ocaml

My implementation of Mal (Make-A-Lisp) in OCaml.

Make-A-Lisp Guide

Build

Dependencies

  • ocaml compiler (tested on 4.07.0)
  • dune: for building executables (tested on 1.10.0)
  • make
  • rlwrap: for better repl experience
  • python (optional): run mal project test suite

Build mal-ocaml

make ocaml

Clean up

make "clean^ocaml"

Run mal test suite

make "test^ocaml"
make MAL_IMPL=ocaml "test^mal"      # self-hosting tests

Run mal-ocaml REPL

ocaml/_build/default/stepA_mal.exe

Run a Mal Program

ocaml/_build/default/stepA_mal.exe examples/hello.mal

License

Mal (make-a-lisp) is created by Joel Martin and licensed under the MPL 2.0 (Mozilla Public License 2.0). See LICENSE for more details.