{"id":19899777,"url":"https://github.com/steshaw/language-swift2-quote","last_synced_at":"2026-05-18T02:36:30.862Z","repository":{"id":137213699,"uuid":"58015110","full_name":"steshaw/language-swift2-quote","owner":"steshaw","description":"💫 Swift 2.1 parser and pretty-printer 🚧💔😢","archived":false,"fork":false,"pushed_at":"2019-09-15T04:17:57.000Z","size":210,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-26T02:56:39.783Z","etag":null,"topics":["haskell","parser","swift","swift-2"],"latest_commit_sha":null,"homepage":"","language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steshaw.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,"zenodo":null}},"created_at":"2016-05-04T02:00:01.000Z","updated_at":"2019-09-15T04:17:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"66b6fab6-7ca3-4e87-b98e-06e16f5dc08e","html_url":"https://github.com/steshaw/language-swift2-quote","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/steshaw/language-swift2-quote","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steshaw%2Flanguage-swift2-quote","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steshaw%2Flanguage-swift2-quote/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steshaw%2Flanguage-swift2-quote/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steshaw%2Flanguage-swift2-quote/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steshaw","download_url":"https://codeload.github.com/steshaw/language-swift2-quote/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steshaw%2Flanguage-swift2-quote/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33162691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T22:39:12.733Z","status":"online","status_checked_at":"2026-05-18T02:00:06.436Z","response_time":71,"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":["haskell","parser","swift","swift-2"],"created_at":"2024-11-12T20:09:53.203Z","updated_at":"2026-05-18T02:36:30.856Z","avatar_url":"https://github.com/steshaw.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quasiquotation for Swift in Haskell\n\nThis library will eventually provide quasiquotation support for Swift in\nTemplate Haskell.\n\n## Warning\n\nUnfortunately the Swift 2.1 grammar is quite left recursive -- not just on the\nsmall scale but on a large scale. This was not something I had noticed before\ndigging right into this project. It looks as though the changes for Swift 3\nmight make some things easier in this regard (though I haven't checked the\ngrammar closely). Much of this parser may be reusable for Swift 3. I would\nrecommend using a [grammar checking\ntool](http://smlweb.cpsc.ucalgary.ca/start.html) prior to encoding the Swift 3\ngrammar in parser combinators.\n\n## Resources\n\n- [Swift 5.1 Grammar Summary](https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html)\n\n## TODO\n\n- [ ] Upgrade to 5.1 🤣.\n- [ ] Fix \"large scale\" left-recursion.\n- [ ] remaining `pattern` productions.\n- [ ] Replace interim `identifier` parser with one that meets the spec.\n- [ ] `getter-setter-keyword-block` (currently disguised as simply `getter-setter-block`).\n- [ ] expressions need to use `chainr` and `chainl`.\n- [ ] missing/incomplete rendering functions.\n- [ ] additional test cases:\n  - [ ] closures and closure signatures\n  - [ ] availability conditions\n  - [ ] protocol members\n  - [ ] nested expressions\n  - [ ] enums\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteshaw%2Flanguage-swift2-quote","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteshaw%2Flanguage-swift2-quote","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteshaw%2Flanguage-swift2-quote/lists"}