#tree-sitter #node #typed #generate #wrapper #grammar #queries

type-sitter-gen

generate typed wrappers for tree-sitter grammars from node-types.json and queries

11 unstable releases (5 breaking)

0.6.0 Nov 30, 2024
0.5.3 Nov 25, 2024
0.5.2 Oct 20, 2024
0.4.0 Apr 1, 2024
0.1.2 May 8, 2023

#638 in Programming languages


Used in 3 crates (2 directly)

MIT/Apache

155KB
3K SLoC

type-sitter-gen: base functionality to generate typed wrapper nodes for type-sitter

crates.io docs.rs

See type-sitter for background information. This library allows you to generate type-sitter wrappers with more flexibility than type-sitter-cli and type-sitter-proc. It's the only way (outside of manually editing code generated by type-sitter-cli) to generate wrappers which import something that isn't tree_sitter, generate queries without some of their patterns and captures, or combine multiple generations into one file.

Dependencies

~7–15MB
~173K SLoC