Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/neocmakelsp/treesitter_kind_collector
- Owner: neocmakelsp
- License: mit
- Created: 2024-06-24T08:37:56.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-08-15T06:06:45.000Z (6 months ago)
- Last Synced: 2024-11-20T16:07:36.895Z (2 months ago)
- Topics: tree-sitter
- Language: Rust
- Homepage: https://crates.io/crates/treesitter_kind_collector/
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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);
}```