This repository has the following dependencies:
make
ocaml
, tested on4.12.0
, but4.7+
should be aqequatedune 2.x
, tested on2.8.5
If you are using nix
, you can use the shell.nix
file and nix-shell
to setup the necessary dependencies.
There are also some optional dependencies:
js_of_ocaml
andjs_of_ocaml-ppx
, for a HTML demoodoc
, for generating API document
To build this repository, do one of the following:
make
, to build everything.make build
, to build everything except for API doc.make checker
, to build the OCaml checker library onlymake demo
, to build the HTML demo. You can play with the demo indemo/demo.html
afterwards.make doc
, to build the API doc.
The HTML demo is also hosted on https://guest0x0.xyz/deeplang-borrow-checker-demo/demo.html. You can play with it online there.
See the API document in doc/api/checker@26bb1931b3ad/Checker/
.
You can view it online by pasting the URL at https://htmlpreview.github.io.
There is also a hosted version of the API doc at
https://guest0x0.xyz/deeplang-borrow-checker-demo/api/checker@26bb1931b3ad/Checker.