menhir

LR(1) parser generator for OCaml

Install

All systems
curl cmd.cat/menhir.sh
Debian Debian
apt-get install menhir
Ubuntu
apt-get install menhir
image/svg+xml Kali Linux
apt-get install menhir
Fedora
dnf install ocaml-menhir
Windows (WSL2)
sudo apt-get update sudo apt-get install menhir
OS X
brew install menhir
Raspbian
apt-get install menhir

ocaml-menhir

LR(1) parser generator for OCaml

menhir

Parser generator for OCaml

Menhir is a LR(1) parser generator for the OCaml programming language. It is mostly compatible with the ocamlyacc parser generator provided with the OCaml system, and has the following enhancements over ocamlyacc: * it accepts LR(1) grammars, * it offers parameterized nonterminal symbols as well as a library of standard definitions, * it explains conflicts in terms of the grammar, * it allows grammar specifications to be split over multiple files and parametrized by OCaml modules, * it produces reentrant parsers.