#tree-sitter #wgsl #bevy #incremental-parser #parser #tree-sitter-wgsl-bevy

tree-sitter-wgsl-bevy

WGSL grammar for tree-sitter with extensions for the Bevy preprocessor (extends tree-sitter-wgsl)

3 releases

0.1.3 Apr 6, 2024
0.1.2 Apr 6, 2024
0.1.1 Apr 1, 2024

#2882 in Parser implementations

Download history 36/week @ 2025-01-01 10/week @ 2025-01-29 10/week @ 2025-02-05 47/week @ 2025-02-12 28/week @ 2025-02-19 70/week @ 2025-02-26 44/week @ 2025-03-05 16/week @ 2025-03-12 16/week @ 2025-03-19 8/week @ 2025-03-26 27/week @ 2025-04-02 9/week @ 2025-04-09

61 downloads per month
Used in 2 crates (via shader-sense)

MIT license

520KB
17K SLoC

C 17K SLoC JavaScript 92 SLoC // 0.2% comments Rust 32 SLoC // 0.1% comments

tree-sitter-wgsl-bevy

CI discord matrix npm crates pypi

This is a extension of tree-sitter-wgsl to support the Bevy preprocessor.

Dependencies

~2.8–4MB
~75K SLoC