6 releases (3 breaking)
0.25.7 | Jul 1, 2025 |
---|---|
0.25.6 |
|
0.25.2 | Mar 13, 2025 |
0.24.5 | Dec 16, 2024 |
0.1.0 | Dec 3, 2024 |
#1134 in Parser implementations
8,272 downloads per month
Used in 4 crates
4.5MB
123K
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.into()).expect("Error loading powershell grammar");
let tree = parser.parse(code, None).unwrap();