Yacclib is a small OCaml library to parse and print OCamlyacc .mly files. It can also print dot graphs from these files.
The documentation generated by OCamldoc can be browsed here.
Yacclib comes with a graphical editor for OCamlyacc (.mly) files.
The editor is quite simple by now. More features should be added,
like templates or shortcuts to define usual structures (like lists).
The compilation of the graphical editor requires Cameleon2 1.9.10 (or above) to be installed. |
(Click on the image to enlarge) |
Yacclib is distributed under the GPL license.
Here are two examples of generated dot graphs: one generated from
the Yacclib parser:
and one from the OCaml parser (warning: this image is big: 9Mo):