#tree-sitter #powershell #incremental #parser

tree-sitter-powershell

powershell grammar for the tree-sitter parsing library

4 releases (2 breaking)

0.24.5 Dec 16, 2024
0.24.4 Dec 9, 2024
0.2.0 Dec 5, 2024
0.1.0 Dec 3, 2024

#118 in Text editors

Download history 87/week @ 2024-11-27 359/week @ 2024-12-04 684/week @ 2024-12-11 999/week @ 2024-12-18 525/week @ 2024-12-25 926/week @ 2025-01-01 1277/week @ 2025-01-08

4,034 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 37 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()).expect("Error loading powershell grammar");
let tree = parser.parse(code, None).unwrap();

Dependencies

~3–4MB
~80K SLoC