Terra grammar for tree-sitter
Run the following to install the required packages and generates the C-parser file.
npm install
tree-sitter generate
Next, you can e.g. build a WebAssembly version of the parser, see tree-sitter-build
tree-sitter build --wasm --output ./build/parser.wasm
Checkout the tree-sitter documentation for other formats