#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

#523 in Text editors

Download history 3/week @ 2024-07-30 1/week @ 2024-09-10 14/week @ 2024-09-24 5/week @ 2024-10-01

404 downloads per month

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.8–4MB
~76K SLoC