#tree-sitter #proc-macro #node #generate #grammar #wrapper #type-sitter

macro type-sitter-proc

procedural macros for type-sitter (generate typed wrappers for tree-sitter grammars from node-types.json and queries)

10 unstable releases (4 breaking)

new 0.5.3 Nov 25, 2024
0.5.2 Oct 20, 2024
0.4.0 Apr 1, 2024
0.3.1 Apr 1, 2024
0.1.2 May 8, 2023

#1261 in Programming languages

Download history 5/week @ 2024-09-23 3/week @ 2024-09-30 201/week @ 2024-10-14 121/week @ 2024-10-21 5/week @ 2024-10-28 103/week @ 2024-11-11 217/week @ 2024-11-18

331 downloads per month
Used in type-sitter

MIT/Apache

155KB
3K SLoC

type-sitter-proc: generate type-sitter wrappers via procedural macros

crates.io

See type-sitter for background information. This exports procedural macros which generate typed nodes. Typed nodes can also be generated from a built-script using type-sitter-gen, or from a command-line interface using type-sitter-cli.

Instead of depending on this, typically you should depend on type-sitter instead with the proc feature (enabled by default). type-sitter with the proc feature re-exports this crate, but also type-sitter-lib, which the generated code depends on at runtime.

Dependencies

~7–15MB
~177K SLoC