@wardbrian/tree-sitter-stan
Version:
A tree sitter grammer for modern Stan programs
33 lines (20 loc) • 940 B
Markdown
This is a [tree-sitter](https://tree-sitter.github.io/tree-sitter/) parser for the Stan language.
It can parse the [latest Stan syntax](./grammar.txt), however, it does not necessarily parse
deprecated language features which are scheduled for removal.
`tree-sitter-stan` is available on npm:
```bash
npm i @wardbrian/tree-sitter-stan
```
Note: The `@wardbrian` scope is necessary because the `tree-sitter-stan` package name is
already taken by a [previous attempt by jrnold](https://github.com/jrnold/tree-sitter-stan),
which this version is loosely based on.
See [stan-ts-mode](https://github.com/WardBrian/stan-ts-mode) for Emacs 29+
This can be used with [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter/#adding-parsers)
I have a minimal [Zed](https://zed.dev/) extension at https://github.com/WardBrian/zed-stan-extension