This grammar is for the GOD data serialization language, which is heavily derived from the Nix language, albeit without any programatic features. See the repo for more information.
You can build, test, parse, and highlight like so:
tree-sitter build
tree-sitter test
tree-sitter parse example/types.god
tree-sitter highlight example/package.godIf you would like to introspect the grammar interactively, you can use the following commands:
tree-sitter build --wasm
tree-sitter playgroundWhich will open a local web server at port 8001 with an interface to use.
And if you'd like to install the grammar, you can use make or CMake:
# make
make
make test
make install # as root if needed
# cmake
cmake -B .build -DCMAKE_BUILD_TYPE=Release # add '-G Ninja' to use ninja
cmake --build .build
cmake --build .build --target ts-test # to test the grammar
cmake --install .build # as root if neededIn addition the the manual method above, you may find prebuilt packages on the releases page, along with source-only archives as well.
This project is licensed under the GNU Lesser General Public License, version 3.0 or later.