5 releases (3 breaking)

0.25.2 Mar 13, 2025
0.24.5 Dec 16, 2024
0.24.4 Dec 9, 2024
0.2.0 Dec 5, 2024
0.1.0 Dec 3, 2024

#1237 in Parser implementations

Download history 483/week @ 2024-12-24 780/week @ 2024-12-31 1161/week @ 2025-01-07 1945/week @ 2025-01-14 1501/week @ 2025-01-21 1367/week @ 2025-01-28 1076/week @ 2025-02-04 1128/week @ 2025-02-11 2175/week @ 2025-02-18 1703/week @ 2025-02-25 1315/week @ 2025-03-04 1817/week @ 2025-03-11 1052/week @ 2025-03-18 1046/week @ 2025-03-25 1026/week @ 2025-04-01 872/week @ 2025-04-08

4,234 downloads per month
Used in 3 crates

MIT license

4.5MB
124K SLoC

C 123K SLoC // 0.0% comments JavaScript 784 SLoC // 0.0% comments Scheme 115 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