{"id":39965058,"url":"https://github.com/qoretechnologies/module-treesitter","last_synced_at":"2026-01-18T21:35:20.131Z","repository":{"id":331821028,"uuid":"1127708400","full_name":"qoretechnologies/module-treesitter","owner":"qoretechnologies","description":"Tree-sitter syntax parsing library bindings for Qore","archived":false,"fork":false,"pushed_at":"2026-01-11T13:20:16.000Z","size":831,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2026-01-11T13:47:35.300Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/qoretechnologies.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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-01-04T12:49:14.000Z","updated_at":"2026-01-11T13:20:21.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/qoretechnologies/module-treesitter","commit_stats":null,"previous_names":["qoretechnologies/module-treesitter"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/qoretechnologies/module-treesitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-treesitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-treesitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-treesitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-treesitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qoretechnologies","download_url":"https://codeload.github.com/qoretechnologies/module-treesitter/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qoretechnologies%2Fmodule-treesitter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28551202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T20:59:07.572Z","status":"ssl_error","status_checked_at":"2026-01-18T20:59:02.799Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-18T21:35:20.066Z","updated_at":"2026-01-18T21:35:20.116Z","avatar_url":"https://github.com/qoretechnologies.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Qore tree-sitter Module\n\nTree-sitter syntax parsing library bindings for the [Qore Programming Language](https://qore.org).\n\n## Description\n\nThis module provides bindings to the [tree-sitter](https://tree-sitter.github.io/tree-sitter/) parsing library, enabling fast, incremental syntax parsing for multiple programming languages.\n\n## Supported Grammars\n\n- Python\n- Java\n- JSON\n- YAML\n- JavaScript\n- Kotlin\n- TypeScript\n- TSX\n- Qore\n\n## Features\n\n- **Incremental parsing**: Efficiently re-parse after edits\n- **Tree cursors**: Memory-efficient tree traversal\n- **Query API**: Pattern matching for syntax highlighting and code analysis\n- **Thread-safe**: All classes are thread-safe\n- **Grammar parity**: The bundled Qore grammar is intended to mirror the Qore parser to support language servers\n\n## Building\n\n```bash\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\nmake install\n```\n\n## Requirements\n\n- Qore 1.0+\n- CMake 3.15+\n- C++17 compiler\n\n## Example\n\n```qore\n%requires treesitter\n\n# Parse Python code\nTreeSitterParser parser(\"python\");\nTreeSitterTree tree = parser.parse(\"def hello(): pass\");\nTreeSitterNode root = tree.getRootNode();\n\nprintf(\"Root type: %s\\n\", root.getType());\nprintf(\"S-expression: %s\\n\", root.toSexp());\n\n# Parse Qore code\nTreeSitterParser qoreParser(\"qore\");\nTreeSitterTree qoreTree = qoreParser.parse(\"class Test { constructor() {} }\");\nprintf(\"Qore root: %s\\n\", qoreTree.getRootNode().getType());\n```\n\n## Classes\n\n- **TreeSitterParser**: Parse source code into syntax trees\n- **TreeSitterTree**: Represents a parsed syntax tree\n- **TreeSitterNode**: A node in the syntax tree\n- **TreeSitterCursor**: Efficient tree traversal cursor\n- **TreeSitterQuery**: Pattern matching on syntax trees\n\n## License\n\nLGPL 2.1 or MIT - see [LICENSE](LICENSE) for details.\n\n## Links\n\n- [Qore Programming Language](https://qore.org)\n- [tree-sitter](https://tree-sitter.github.io/tree-sitter/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-treesitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqoretechnologies%2Fmodule-treesitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqoretechnologies%2Fmodule-treesitter/lists"}