{"id":18044846,"url":"https://github.com/will/tree-sitter-crystal","last_synced_at":"2025-04-10T01:22:16.359Z","repository":{"id":47330942,"uuid":"390079462","full_name":"will/tree-sitter-crystal","owner":"will","description":null,"archived":false,"fork":false,"pushed_at":"2021-09-02T22:13:47.000Z","size":909,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-04-14T02:21:34.593Z","etag":null,"topics":["crystal","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"C","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/will.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}},"created_at":"2021-07-27T17:58:50.000Z","updated_at":"2024-01-21T17:04:53.000Z","dependencies_parsed_at":"2022-09-12T11:01:26.993Z","dependency_job_id":null,"html_url":"https://github.com/will/tree-sitter-crystal","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Ftree-sitter-crystal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Ftree-sitter-crystal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Ftree-sitter-crystal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/will%2Ftree-sitter-crystal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/will","download_url":"https://codeload.github.com/will/tree-sitter-crystal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248138307,"owners_count":21053847,"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","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":["crystal","hacktoberfest"],"created_at":"2024-10-30T18:10:59.755Z","updated_at":"2025-04-10T01:22:16.328Z","avatar_url":"https://github.com/will.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tree-sitter-crystal\n\nA WIP [tree-sitter](https://tree-sitter.github.io/) grammar for [Crystal](https://crystal-lang.org).\n\n## Status\n\n- [x] Comments\n- [ ] Literals\n    - [x] nil\n\t- [x] bool\n\t- [x] float\n\t- [x] integer\n\t- [x] symbol\n\t- [x] char\n\t- [ ] string\n\t\t- [x] literals\n\t\t- [ ] interpolation\n\t- [x] array\n\t- [x] hash\n\t- [x] array-or-hash-index-access (`foo[0]` or `foo[:something]`)\n\t- [x] range\n\t- [x] regex\n\t- [x] tuple\n\t- [x] namedtuple\n\t- [ ] proc\n\t- [ ] command\n\t\t- [x] literals\n\t\t- [ ] interpolation\n- [x] Assignment\n\t- [x] to local var\n\t- [x] to instance var\n\t- [x] to class var\n\t- [x] to constant\n\t- [x] to \"assignment methods\"/properties\n\t- [x] multiple-assignment\n- [ ] Binary operations\n\t- [x] basic support\n\t- [ ] per-operator precedence definitions\n- [x] Variables\n\t- [x] local variables\n\t- [x] instance variables\n\t- [x] class variables\n\t- [x] constants\n- [ ] Control expressions\n\t- [ ] if/else\n\t\t- [ ] \"block-level\" form (`if something ; stuff ; else ; end`)\n\t\t- [ ] \"suffix\" form (`foo = bar if something`)\n\t- [ ] unless\n\t\t- [ ] \"block-level\" form (`unless something ; stuff ; else ; end`)\n\t\t- [ ] \"suffix\" form (`foo = bar unless something`)\n\t- [ ] case\n\t- [ ] while\n\t- [ ] until \n- [x] `require` statements\n- [x] Type grammar\n\t- [x] Basic \"bare\" types (e.g. `Foo`)\n\t- [x] Namespaced types (e.g. `Some::Namespace::Foo`)\n\t- [x] Generic types (e.g. `Foo(T)` and `Foo(A, B)`)\n\t- [x] Union types\n\t- [x] Class definitions\n\t- [x] Module definitions\n\t\t- [x] `include` statements\n\t- [x] Structs\n\t- [x] Enums\n\t- [x] Type annotations  \n\t\t- [x] in variable declarations\n\t\t- [x] in method parameter declarations\n\t\t- [x] as method return types\n\t- [x] `alias` statements\n- [ ] Blocks\n\t- [x] `do` blocks (with and without parameters)\n\t- [x] `{|x| whatever }` blocks (with parameters only)\n\t- [ ] `begin`...`rescue`...`end` blocks\n- [x] Method definitions\n- [x] Method calls\n- [ ] \"Bare\" function calls (like `puts 1` and `puts(1)`)\n- [ ] Splats\n\t- [ ] in method calls\n\t- [ ] in method definitions\n- [ ] Macros\n- [ ] Annotations\n\n## Developing\n\nTo test `tree-sitter generate \u0026\u0026 tree-sitter test` (or just `npm test`)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Ftree-sitter-crystal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwill%2Ftree-sitter-crystal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwill%2Ftree-sitter-crystal/lists"}