Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>MenhirNew to Visual Studio Code? Get it now.
Menhir

Menhir

dalps

|
33 installs
| (0) | Free
IntelliSense for Menhir grammars and Ocamllex lexers
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Menhir and Ocamllex LSP client

VS Code extension providing IntelliSense for Menhir grammars and Ocamllex lexers. In order to work, it needs the Menhir language server menhir-lsp. Install it with opam, the OCaml package manager:

opam update && opam install menhir-lsp

or download the binary from the latest release and add it to your PATH.

The extension will activate and launch the server upon opening a file ending with .mly or .mll. Enjoy ease of navigation and solid language support in your grammars!

Features

  • Context-aware completions for your grammar's terminals and nonterminals, Menhir's standard library rules, named regexes, captured variables, OCaml modules and constants, etc.
  • References View (Shift+F12 on any symbol)
  • Jump to Definition (Ctrl+Click on any symbol)
  • Hover documentation for token aliases and Menhir's standard library rules
  • Document Symbols (Ctrl+Shift+O)
  • Rename symbol (F2 on a rule name or a token name)
  • Refactorings for Menhir tokens and Ocamllex regular expressions (Cltr+.)
  • Selection ranges (Shift+Alt+← / Shift+Alt+→ to respectively shrink / expand your selection on a regular expression)
  • Fancy file icons

License

GPL-2.0

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft