P4 grammar for tree-sitter.
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
:
npm install tree-sitter-cli
or with cargo
:
cargo install tree-sitter-cli
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.
To contribute, just open a pull request!