{"id":48986733,"url":"https://github.com/pb-shrugged/tree-sitter-powerscript","last_synced_at":"2026-05-09T22:11:17.824Z","repository":{"id":351810183,"uuid":"1212023685","full_name":"pb-shrugged/tree-sitter-powerscript","owner":"pb-shrugged","description":"Powerscript grammar for Tree-sitter","archived":false,"fork":false,"pushed_at":"2026-04-16T14:46:15.000Z","size":16421,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-16T16:32:35.080Z","etag":null,"topics":["parser","powerbuilder","powerscript","tree-sitter"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@pb-shrugged/tree-sitter-powerscript","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pb-shrugged.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-16T01:43:51.000Z","updated_at":"2026-04-16T14:49:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pb-shrugged/tree-sitter-powerscript","commit_stats":null,"previous_names":["pb-shrugged/tree-sitter-powerscript"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pb-shrugged/tree-sitter-powerscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-shrugged%2Ftree-sitter-powerscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-shrugged%2Ftree-sitter-powerscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-shrugged%2Ftree-sitter-powerscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-shrugged%2Ftree-sitter-powerscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pb-shrugged","download_url":"https://codeload.github.com/pb-shrugged/tree-sitter-powerscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb-shrugged%2Ftree-sitter-powerscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31969773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"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":["parser","powerbuilder","powerscript","tree-sitter"],"created_at":"2026-04-18T13:03:30.659Z","updated_at":"2026-04-18T13:03:31.453Z","avatar_url":"https://github.com/pb-shrugged.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-sitter-powerscript\n\nPowerscript grammar for [Tree-sitter](https://tree-sitter.github.io/tree-sitter/).\n\n## Supported File Types\n\n- `.srs` - Structure\n- `.srf` - Function\n- `.srw` - Window\n- `.sru` - User Object\n- `.sra` - Application\n- `.srm` - Menu\n\n## Installation\n\n### As a npm package on your project\n\n```bash\nnpm install tree-sitter-powerscript\n```\n\n### Usage with Tree-sitter CLI\n\n```bash\n# Install tree-sitter CLI\nnpm install -g tree-sitter-cli\n\n# Clone this repository\ngit clone https://github.com/pb-shrugged/tree-sitter-powerscript.git\ncd tree-sitter-powerscript\n\n# Generate the parser\ntree-sitter generate\n\n# Test the parser\ntree-sitter test\n\n# Parse a powerscript file\ntree-sitter parse path/to/your/file.sru\n```\n\n## Usage\n\n### Node.js\n\n```javascript\nconst Parser = require('tree-sitter');\nconst Powerscript = require('tree-sitter-powerscript');\n\nconst parser = new Parser();\nparser.setLanguage(Powerscript);\n\nconst sourceCode = `\nglobal type w_main from window\nend type\n\non w_main.create\n// Window creation code\nend on\n`;\n\nconst tree = parser.parse(sourceCode);\nconsole.log(tree.rootNode.toString());\n```\n\n## Development\n\n### Prerequisites\n\n- Node.js\n- tree-sitter CLI\n\n### Setup\n\n```bash\ngit clone https://github.com/pb-shrugged/tree-sitter-powerscript.git\ncd tree-sitter-powerscript\nnpm install\n```\n\n### Development Commands\n\n```bash\n# Generate the grammar\nnpm run ts:generate\n\n# Run tests\nnpm run ts:test\n\n# Build WebAssembly\nnpm run ts:run\n\n# Lint code\nnpm run lint\n\n# Run all tests\nnpm test\n```\n\n## CI/CD Pipeline\n\nThis project uses GitHub Actions for continuous integration and deployment:\n\n- [**Lint**](/.github/workflows/lint.yml): Runs lint on push and pull request\n- [**CI Workflow**](/.github/workflows/ci.yml): Runs tests on every push and pull request\n- [**Publish Workflow**](/.github/workflows/publish.yml): Automatically creates GitHub releases and publishes to NPM when tags are pushed\n\n### Automated Releases\n\nTo create a new release:\n\n1. Manually update the tree-sitter version with `tree-sitter version \u003cVERSION\u003e` then create the git tag: `git tag v\u003cVERSION\u003e \u0026\u0026 git push origin v\u003cVERSION\u003e`\n\nThe release process will automatically:\n- Generate cross-platform binaries\n- Create a GitHub release with assets\n- Publish the package to NPM\n\n## Contributing\n\nWe welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.\n\n### Quick Start for Contributors\n\n1. Fork the repository\n2. Create a feature branch: `git checkout -b feature/amazing-feature`\n3. Make your changes and add tests\n4. Run tests: `npm run ts:test` for the test/corpus files and  `npm run test` for the bindings/node files\n5. Commit your changes: `git commit -m 'Add amazing feature'`\n6. Push to the branch: `git push origin feature/amazing-feature`\n7. Open a Pull Request\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Links\n\n- [NPM Package](https://www.npmjs.com/package/@pb-shrugged/tree-sitter-powerscript)\n- [GitHub Repository](https://github.com/pb-shrugged/tree-sitter-powerscript)\n- [Tree-sitter Documentation](https://tree-sitter.github.io/tree-sitter/)\n- [PowerBuilder Documentation](https://docs.appeon.com/#pb)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb-shrugged%2Ftree-sitter-powerscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb-shrugged%2Ftree-sitter-powerscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb-shrugged%2Ftree-sitter-powerscript/lists"}