Install Menhir On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

Install Menhir On A Debian, Ubuntu, Kali, Fedora, Raspbian And MacOS

menhir

LR(1) parser generator for OCaml

Maintainer: Debian OCaml Maintainers



Section: devel

Install menhir

  • Debian apt-get install menhir Click to copy
  • Ubuntu apt-get install menhir Click to copy
  • Kali Linux apt-get install menhir Click to copy
  • Fedora dnf install ocaml-menhir Click to copy
  • Raspbian apt-get install menhir Click to copy
  • macOS brew install menhir Click to copy

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.

Installation of latest menhir command is available for Debian, Ubuntu, Kali, Fedora, Raspbian and macOS. You can copy the command for your OS from above and paste it into your terminal. Once you run the command it will download the 2026 latest package from the repository and install it in your computer/server.