macOS
brew install menhirlocal Homebrew formula metadata
brew
LR(1) parser generator for the OCaml programming language. Version 20260209 via Homebrew; verified from local package data.
install
brew install menhirlocal Homebrew formula metadata
sudo apt install libmenhir-ocaml-devDebian stable package indexes · libmenhir-ocaml-dev · source: deb.debian.org
overview
LR(1) parser generator for the OCaml programming language
history
Menhir is an LR(1) parser generator for OCaml, created in 2005 by François Pottier and Yann Régis-Gianas. Its manual presents it as a generator that turns grammar specifications plus semantic actions into parsers, based on Knuth's LR(1) construction and inspired by yacc, ML-Yacc, and ocamlyacc while adding more modern capabilities.
The project history is unusually well documented in its README. Régis-Gianas contributed the early front-end for parsing and transforming .mly grammar files, while Pottier contributed the LR(1) construction algorithms, conflict explanations, and first OCaml code backend. A table backend using menhirLib followed in 2008 with Jane Street Capital funding through the OCaml Summer Project. Jacques-Henri Jourdan implemented a Coq-table backend in 2011. Frédéric Bour contributed the incremental API, inspection API, attributes, and MenhirSdk between 2014 and 2017. The build moved to Dune in 2019, and Émile Trotignon and Pottier implemented a new efficient, well-typed code backend around StackLang in 2021.
Menhir's ecosystem role is as the richer successor-style tool for OCaml parser generation. OCaml developers feed it .mly grammar files and receive parser .ml/.mli output, either as standalone generated code or table-backed parsers linked with MenhirLib. The opam package page lists many reverse users, including compiler, verification, parsing, and developer-tooling packages, which matches its place as infrastructure for OCaml language tooling.
security posture
generalized runtime or code generation signal.
yellow risk · medium confidence · runtime
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
menhir | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
http://cristal.inria.fr/~fpottier/menhir
install metadata
| Package key | brew:menhir |
|---|---|
| Version | 20260209 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/menhir |
| Homepage | http://cristal.inria.fr/~fpottier/menhir |
| Repository | https://gitlab.inria.fr/fpottier/menhir |
| Upstream docs | http://cristal.inria.fr/~fpottier/menhir |
| License | GPL-3.0-or-later |
| Source archive | https://gitlab.inria.fr/fpottier/menhir/-/archive/20260209/menhir-20260209.tar.bz2 |
| Dependencies | ocaml |
| Build dependencies | dune, ocamlbuild |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | menhir |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libmenhir-ocaml-dev 20240715+ds-1+b2
Menhir library for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install libmenhir-ocaml-devmenhir 20240715+ds-1+b2
Parser generator for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install menhirmenhir-doc 20240715+ds-1
Documentation of the Menhir parser generator for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install menhir-doclibmenhir-ocaml-dev 20231231+ds-1
Menhir library for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install libmenhir-ocaml-devmenhir 20231231+ds-1
Parser generator for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install menhirmenhir-doc 20231231+ds-1
Documentation of the Menhir parser generator for OCaml
https://gallium.inria.fr/~fpottier/menhir/
sudo apt install menhir-docsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.