#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)

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

#1291 in Programming languages

42 downloads per month
Used in type-sitter

MIT/Apache

160KB
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–16MB
~173K SLoC