Tree-sitter grammar for the Allium specification language.
The nvim-allium plugin handles tree-sitter setup automatically.
The allium-mode plugin includes tree-sitter support for Emacs 29+. See its README for grammar installation.
Editors with tree-sitter support (Helix, Zed) can use this grammar directly. Build instructions below.
Install dependencies:
npm installGenerate the parser from grammar.js and build all artifacts:
npm run buildThis runs tree-sitter generate, then builds the native .node binding and the .wasm binding. The WASM step requires emscripten and is skipped if unavailable.
tree-sitter testCorpus tests live in test/corpus/.