{"id":15192250,"url":"https://github.com/powershell/tree-sitter-powershell","last_synced_at":"2025-10-02T07:30:27.314Z","repository":{"id":43331344,"uuid":"191990020","full_name":"PowerShell/tree-sitter-PowerShell","owner":"PowerShell","description":null,"archived":true,"fork":false,"pushed_at":"2024-01-09T06:28:58.000Z","size":429,"stargazers_count":25,"open_issues_count":3,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-21T12:35:58.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PowerShell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-14T18:36:46.000Z","updated_at":"2024-08-05T19:43:36.000Z","dependencies_parsed_at":"2024-09-18T18:04:47.520Z","dependency_job_id":null,"html_url":"https://github.com/PowerShell/tree-sitter-PowerShell","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":0.5384615384615384,"last_synced_commit":"1ac090522cb339a6fd9d3ac915da01cb263d69e1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PowerShell/tree-sitter-PowerShell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2Ftree-sitter-PowerShell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2Ftree-sitter-PowerShell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2Ftree-sitter-PowerShell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2Ftree-sitter-PowerShell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PowerShell","download_url":"https://codeload.github.com/PowerShell/tree-sitter-PowerShell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PowerShell%2Ftree-sitter-PowerShell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277974402,"owners_count":25908396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-02T02:00:08.890Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-27T21:20:23.387Z","updated_at":"2025-10-02T07:30:27.060Z","avatar_url":"https://github.com/PowerShell.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PowerShell support for tree-sitter\n\nA [tree-sitter](http://tree-sitter.github.io/tree-sitter/)\nimplemenation for [PowerShell](https://github.com/PowerShell/PowerShell).\n\n## License\n\nSee [LICENSE](LICENSE).\n\n## Initial goal\n\nParse the [big test file from EditorSyntax](https://github.com/PowerShell/EditorSyntax/blob/master/examples/TheBigTestFile.ps1) completely.\n\n## TODO\n\n- Add tree-sitter [tests](https://tree-sitter.github.io/tree-sitter/creating-parsers#writing-unit-tests)\n- Add support for more syntax:\n    + Statements\n        * `switch`\n        * `filter`\n        * `using`\n        * `throw`\n        * `for`\n        * `foreach`\n        * `do`/`while`/`until`\n        * `exit`/`return`\n        * `break`/`continue`\n        * `trap`\n        * `try`/`catch`/`finally`\n        * `data`\n        * `workflow`/`parallel`/`sequence`\n        * `configuration`\n    + Expressions\n        * `-not`\n        * Unary `-`\n        * `-ge`,`-gt`,`-le`,`-lt`,`-eq`,`-ne`,`-ceq`,`-ieq`, etc.\n        * `+`,`-`,`*`,`/`,`%`,`-or`,`-and`,`-bor`,`-band`, etc.\n        * Element access (`$x[$i]`)\n    + Other syntax\n        * Labels\n        * Better whitespace handling\n        * Herestrings\n        * `#requires`\n        * `#sig`\n        * Pipeline redirection and jobs\n        * Splatting\n        * `\u0026\u0026`/`||`\n- Investigate possibility of dynamic keyword support\n        \n\n## End goal\n\n90%+ compatibility with the PowerShell parser today.\n\n## Getting started\n\n1. `npm install`\n1. `npm start file.ps1`\n\nIf you want to just generate the parser, run `npm run generate`.\n\nIf you want to just parse a script, run `npm run parse file.ps1`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Ftree-sitter-powershell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowershell%2Ftree-sitter-powershell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowershell%2Ftree-sitter-powershell/lists"}