2 unstable releases
0.2.0 | Jun 18, 2024 |
---|---|
0.1.0 | Jun 21, 2022 |
#258 in Text editors
71 downloads per month
265KB
10K
SLoC
tree-sitter-plymouth-script
Plymouth script grammar for tree-sitter.
Many of the syntax parsing rules were adapted from tree-sitter-javascript.
References
lib.rs
:
This crate provides plymouth_script 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_plymouth_script::language()).expect("Error loading plymouth_script grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.8–4MB
~76K SLoC