| Crates.io | treesitter_kind_collector |
| lib.rs | treesitter_kind_collector |
| version | 0.2.0 |
| created_at | 2024-08-15 03:37:08.308036+00 |
| updated_at | 2024-08-15 05:21:56.811982+00 |
| description | collect kind names from node-types.json of treesitter |
| homepage | |
| repository | https://github.com/Decodetalkers/treesitter_type_collector |
| max_upload_size | |
| id | 1338267 |
| size | 21,584 |
Macro example to generate all kind names in node-types.json, and make them to a mod.
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);
}