6 releases (3 breaking)

0.25.7 Jul 1, 2025
0.25.6 Jun 18, 2025
0.25.2 Mar 13, 2025
0.24.5 Dec 16, 2024
0.1.0 Dec 3, 2024

#1134 in Parser implementations

Download history 1238/week @ 2025-03-23 982/week @ 2025-03-30 912/week @ 2025-04-06 866/week @ 2025-04-13 2407/week @ 2025-04-20 4149/week @ 2025-04-27 2719/week @ 2025-05-04 2377/week @ 2025-05-11 2350/week @ 2025-05-18 1813/week @ 2025-05-25 1724/week @ 2025-06-01 1489/week @ 2025-06-08 1983/week @ 2025-06-15 2078/week @ 2025-06-22 2430/week @ 2025-06-29 1678/week @ 2025-07-06

8,272 downloads per month
Used in 4 crates

MIT license

4.5MB
123K SLoC

C 122K SLoC // 0.0% comments JavaScript 1K SLoC // 0.0% comments Scheme 113 SLoC Rust 35 SLoC // 0.1% comments

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();

Dependencies