Skip to content

wreedb/tree-sitter-god

Repository files navigation

Tree-sitter grammar for God

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.


Building/Testing

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.god

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 bld # as root if needed

Installing

In addition the the manual method above, you may find prebuilt packages on the releases page, along with source-only archives as well.


Licensing

This project is licensed under the GNU Lesser General Public License, version 3.0 or later.