Home

Awesome

Myntax

A parser, converter, and pretty-printer generator for OCaml.

Based on https://rwmj.wordpress.com/2010/12/29/packrat-parser-with-left-recursion/, with heavy modifications.

Contributing

yeah it's pretty hacky. I think I might just switch over to esy+dune soon

Lisp.re

NOTE: this is all out of date

Building & using the lisp-to-ocaml parser

Using Lisp.re in a real project

The ocaml compiler actually makes this super easy :D.

watch.js is a script that, when run with a directory, will watch the .rel files in that directory, and recompile them when they change, piping the binary output into the equivalent .ml file. You can then have bucklescript watching the directory, or jbuilder running, and they will treat the binary .ml file as a perfectly normal source file.

npm run example will start the watcher for example/src. You can then start bsb in the example directory with cd example && npm start, and edit example/src/Hello.rel and see bsb recompile.

TODO

Parsing

Pretty-printing