Menhir polishing toolbox, for experienced druids
OCaml
47
1,107 commits
updated Sep 14, 2026
This repository provides different tools to work on the error messages of a menhir-generated parser.
The main tool is lrgrep. It takes:
--cmly flag to Menhir)If the list of rule is well-formed, it produces an OCaml module that can match the rules against the state of a parser at runtime.
By carefully crafting the rules, one can provide fine-grained message to explain syntax errors.
The repository is is structured as follow:
lrgrep.runtime libraryI am trying to document the code. Each of the src, lib, and support directories contain a README.md that briefly explains the purpose of this directory.
External dependencies that are worth knowing:
OCaml
99.6%
Menhir polishing toolbox, for experienced druids
OCaml
47
1,107 commits
updated Sep 14, 2026
This repository provides different tools to work on the error messages of a menhir-generated parser.
The main tool is lrgrep. It takes:
--cmly flag to Menhir)If the list of rule is well-formed, it produces an OCaml module that can match the rules against the state of a parser at runtime.
By carefully crafting the rules, one can provide fine-grained message to explain syntax errors.
The repository is is structured as follow:
lrgrep.runtime libraryI am trying to document the code. Each of the src, lib, and support directories contain a README.md that briefly explains the purpose of this directory.
External dependencies that are worth knowing:
OCaml
99.6%