A PowerShell grammar for tree-sitter, providing robust parsing of PowerShell scripts (including PowerShell 5.1 and PowerShell 7+). Current version 0.26.4, requires Python >=3.10. Released from https://github.com/airbus-cert/tree-sitter-powershell.
pip install tree-sitter-powershellNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Parses a PowerShell snippet and prints the s-expression of the AST.
Use `Language(language())` instead of `Language(language)`.
Update imports to `from tree_sitter_powershell import language`.
Upgrade to >=0.20.0 and use the new `language()` function.
Use `Language(language())`.
Use `from tree_sitter_powershell import language` and then `Language(language())`.