3 releases (breaking)
new 0.24.4 | Dec 9, 2024 |
---|---|
0.2.0 | Dec 5, 2024 |
0.1.0 | Dec 3, 2024 |
#145 in Text editors
454 downloads per month
Used in scrings
4.5MB
124K
SLoC
tree-sitter-powershell
Powershell grammar for tree-sitter
References
lib.rs
:
This crate provides powershell 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_powershell::language()).expect("Error loading powershell grammar");
let tree = parser.parse(code, None).unwrap();
Dependencies
~2.9–4MB
~80K SLoC