#powershell #parser #incremental

tree-sitter-powershell

powershell grammar for the tree-sitter parsing library

5 releases (3 breaking)

new 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

#144 in Text editors

Download history 225/week @ 2024-11-29 265/week @ 2024-12-06 1059/week @ 2024-12-13 822/week @ 2024-12-20 545/week @ 2024-12-27 1004/week @ 2025-01-03 1358/week @ 2025-01-10 2007/week @ 2025-01-17 1521/week @ 2025-01-24 1077/week @ 2025-01-31 1244/week @ 2025-02-07 1916/week @ 2025-02-14 1897/week @ 2025-02-21 1217/week @ 2025-02-28 1689/week @ 2025-03-07

6,951 downloads per month
Used in 2 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