Skip to main content

Crate treesitter_types_macros

Crate treesitter_types_macros 

Source
Expand description

Proc-macro companion for treesitter-types.

Provides the generate_types! macro, which reads a Tree-sitter node-types.json file at compile time and expands it into strongly-typed Rust AST structs and enums.

If you don’t need compile-time generation, consider using one of the pre-generated language crates (e.g. treesitter-types-go) instead.

Macros§

generate_types
Generates typed AST structs and enums from a tree-sitter node-types.json file.