#parser #tree-sitter #incremental #wenyan

tree-sitter-wenyan

wenyan grammar for the tree-sitter parsing library

1 unstable release

0.1.0 Aug 12, 2022

#512 in Text editors

MIT license

295KB
12K SLoC

C 12K SLoC JavaScript 273 SLoC Rust 31 SLoC // 0.5% comments

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