#slang #incremental #tree-sitter #parser

tree-sitter-slang

slang grammar for the tree-sitter parsing library

5 releases

0.2.3 Jun 22, 2024
0.2.2 Apr 2, 2024
0.2.1 Apr 2, 2024
0.2.0 Apr 1, 2024
0.1.0 Feb 21, 2024

#522 in Text editors

MIT license

24MB
723K SLoC

C 723K SLoC // 0.0% comments JavaScript 106 SLoC // 0.1% comments Rust 36 SLoC // 0.1% comments

tree-sitter-slang

CI discord matrix npm crates pypi

This is a extension of tree-sitter-cpp and tree-sitter-hlsl to support the syntax of slang.

Limitations/TODOs:

  • ambiguity between HLSL semantics and Slang type hints

Dependencies

~2.7–4MB
~75K SLoC