1 unstable release
0.1.0 | Mar 10, 2023 |
---|
#103 in #query-language
196 downloads per month
Used in 4 crates
(3 directly)
165KB
6.5K
SLoC
tree-sitter-query
A tree-sitter parser for tree-sitter query files (scheme-like).
lib.rs
:
This crate provides query language support for the tree-sitter parsing library.
Typically, you will use the language function to add this language to a tree-sitter Parser, and then use the parser to parse some code:
let code = "";
let mut parser = tree_sitter::Parser::new();
parser.set_language(tree_sitter_javascript::language()).expect("Error loading query grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~71K SLoC