treesitter_kind_collector

Crates.iotreesitter_kind_collector
lib.rstreesitter_kind_collector
version0.2.0
sourcesrc
created_at2024-08-15 03:37:08.308036
updated_at2024-08-15 05:21:56.811982
descriptioncollect kind names from node-types.json of treesitter
homepage
repositoryhttps://github.com/Decodetalkers/treesitter_type_collector
max_upload_size
id1338267
size21,584
Access (Decodetalkers)

documentation

README

treesitter-type-collector

Macro example to generate all kind names in node-types.json, and make them to a mod.

Example:

use treesitter_type_collector::tree_sitter_consts;

#[tree_sitter_consts("asserts/node-types.json")]
struct NodeTypes;

fn main() {
    println!("{}", NodeTypes::KIND_ARGUMENT);
    println!("{:?}", NodeTypes::NODE_TYPES);
}

Commit count: 0

cargo fmt