{"id":16148269,"url":"https://github.com/chanwit/kgc","last_synced_at":"2025-10-07T12:43:47.476Z","repository":{"id":66507575,"uuid":"1618225","full_name":"chanwit/kgc","owner":"chanwit","description":"Korat Golang Compiler","archived":false,"fork":false,"pushed_at":"2011-08-15T03:46:15.000Z","size":229,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-28T11:39:22.454Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/chanwit.png","metadata":{"files":{"readme":"README.markdown","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}},"created_at":"2011-04-15T09:12:22.000Z","updated_at":"2018-06-05T21:37:23.000Z","dependencies_parsed_at":"2023-02-20T05:31:00.892Z","dependency_job_id":null,"html_url":"https://github.com/chanwit/kgc","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/chanwit%2Fkgc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fkgc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fkgc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanwit%2Fkgc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanwit","download_url":"https://codeload.github.com/chanwit/kgc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243945478,"owners_count":20372894,"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":[],"created_at":"2024-10-10T00:32:21.947Z","updated_at":"2025-10-07T12:43:42.443Z","avatar_url":"https://github.com/chanwit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"README\n======\n\nKorat Golang Compiler, KGC.\nCopyright (c) 2011 Chanwit Kaewkasi / SUT.\n\nThis program is a front-end compiler for 8g and GCCGO.\nIt additionally supports the following language constructs:\n\n  * trait\n  * case struct\n  * pattern matching\n\nTrait\n-----\n\n    type Object trait {}\n\n\nCase struct\n-----------\n\n    type Something  casestruct {\n        left  Object\n        right Object\n    }\n    type SomeObject casestruct borrows Object {}\n\n\nPattern Matching\n----------------\n\n    match s {\n        case Something(x, SomeObject(y)):\n            return Some(x,y)\n        case Something(SomeObject(), x):\n            return Some(x)\n    }\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fkgc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanwit%2Fkgc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanwit%2Fkgc/lists"}