Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/neocmakelsp/treesitter_kind_collector

treesitter-type-collector
https://github.com/neocmakelsp/treesitter_kind_collector

tree-sitter

Last synced: about 1 month ago
JSON representation

treesitter-type-collector

Awesome Lists containing this project

README

        

# treesitter-type-collector

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

## Example:

```rust
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);
}

```