https://github.com/oxidecomputer/tree-sitter-p4
P4 grammar for tree-sitter
https://github.com/oxidecomputer/tree-sitter-p4
Last synced: 9 months ago
JSON representation
P4 grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/oxidecomputer/tree-sitter-p4
- Owner: oxidecomputer
- License: mpl-2.0
- Created: 2024-08-04T03:09:32.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-23T20:24:43.000Z (about 1 year ago)
- Last Synced: 2025-09-28T22:45:26.123Z (9 months ago)
- Language: JavaScript
- Size: 318 KB
- Stars: 6
- Watchers: 19
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-p4: P4 grammar for tree-sitter
P4 grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter).
## Setup
To build the parser, you need to have `tree-sitter` installed. You can install
it using most OS package managers, from source, or through `npm`:
```sh
npm install tree-sitter-cli
```
or with `cargo`:
```sh
cargo install tree-sitter-cli
```
## Contributing
This project is still in its early stages, so there are many things that can be
improved, as we aim toward capturing more of the [`P4_16` specification][p4-16-spec].
To contribute, just open a pull request!
[p4-16-spec]: https://p4.org/p4-spec/docs/P4-16-v1.0.0-spec.html