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

macro type-sitter-proc

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

9 unstable releases (4 breaking)

0.5.2 Oct 20, 2024
0.5.0 Oct 18, 2024
0.4.0 Apr 1, 2024
0.3.1 Apr 1, 2024
0.1.2 May 8, 2023

#1258 in Programming languages

Download history 129/week @ 2024-07-29 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

312 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

~6–15MB
~176K SLoC