1 unstable release

0.1.0 Mar 10, 2023

#443 in Text editors

Download history 55/week @ 2024-07-19 102/week @ 2024-07-26 16/week @ 2024-08-02 6/week @ 2024-08-09 9/week @ 2024-08-16 9/week @ 2024-08-23 64/week @ 2024-08-30 15/week @ 2024-09-06 8/week @ 2024-09-13 44/week @ 2024-09-20 42/week @ 2024-09-27 16/week @ 2024-10-04 56/week @ 2024-10-11 39/week @ 2024-10-18 12/week @ 2024-10-25 37/week @ 2024-11-01

147 downloads per month
Used in 4 crates (3 directly)

Apache-2.0

165KB
6.5K SLoC

C 6.5K SLoC JavaScript 129 SLoC // 0.0% comments Rust 31 SLoC // 0.5% comments

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.8–4MB
~76K SLoC