macOS
brew install menhirlocal Homebrew formula metadata
安装
brew install menhirlocal Homebrew formula metadata
sudo apt install menhirDebian stable package indexes · menhir · 来源: deb.debian.org
概览
LR(1) parser generator for the OCaml programming language
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
menhir | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:menhir |
|---|---|
| 版本 | 20260209 |
| 软件包管理器 | Homebrew |
| 主页 | http://cristal.inria.fr/~fpottier/menhir |
| 最后更新 | 2026-07-13T05:11:30Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.