1 unstable release
0.1.0 | Aug 12, 2022 |
---|
#512 in Text editors
295KB
12K
SLoC
tree-sitter-wenyan
Wenyan grammar for tree-sitter
Adapted from the Wenyan Language's spec
lib.rs
:
This crate provides wenyan 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_wenyan::language()).expect("Error loading wenyan grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.7–4MB
~76K SLoC