#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

#472 in Programming languages

Download history 8/week @ 2024-08-26 16/week @ 2024-09-23 10/week @ 2024-09-30 207/week @ 2024-10-14 127/week @ 2024-10-21 10/week @ 2024-10-28 2/week @ 2024-11-04 114/week @ 2024-11-11 228/week @ 2024-11-18 263/week @ 2024-11-25 66/week @ 2024-12-02

671 downloads per month
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
~174K SLoC