Skip to content

taekwombo/tree-sitter-glsl

Repository files navigation

tree-sitter-glsl

GLSL grammar for tree-sitter

In general the above (GLSL) grammar describes a super set of the OpenGL Shading Language. Certain constructs that are valid purely in terms of the grammar are disallowed by statements elsewhere in this specification.

Development

Install the dependencies:

npm install

Run the tests:

npm run test

Run the build and tests in watch mode:

npm run test:watch

Test parser against example files (requires git submodule initialisation):

npm run test:examples

Git Submodules

References