{"id":17717716,"url":"https://github.com/mununki/spice-compiler","last_synced_at":"2025-10-07T02:59:12.024Z","repository":{"id":143922258,"uuid":"491189148","full_name":"mununki/spice-compiler","owner":"mununki","description":"A compiler implementing the type inference of Hindley–Milner type system","archived":false,"fork":false,"pushed_at":"2022-06-04T02:04:53.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-24T03:22:05.928Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"OCaml","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/mununki.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}},"created_at":"2022-05-11T16:24:26.000Z","updated_at":"2024-04-24T03:22:05.929Z","dependencies_parsed_at":null,"dependency_job_id":"ec52c50a-12ed-4b72-a07c-2f4adcbabf16","html_url":"https://github.com/mununki/spice-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mununki/spice-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fspice-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fspice-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fspice-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fspice-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mununki","download_url":"https://codeload.github.com/mununki/spice-compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mununki%2Fspice-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278712705,"owners_count":26032741,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-10-25T14:29:43.722Z","updated_at":"2025-10-07T02:59:12.011Z","avatar_url":"https://github.com/mununki.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spice compiler\n\nTiny compiler consists of Lexer, Parser, Type checker written in OCaml.\n\nThe type inference implemetation is mostly from the sound_lazy in https://okmij.org/ftp/ML/generalization.html and modified for the purpose of typing the parsetree (AST) from the parser.\n\n## Example\n\nSource\n\n```ocaml\nlet x = fun y -\u003e y + 1 in\n(x 1)\n```\n\nThe typed tree\n\n```\nProgram\n└──Expr: Let var: x: Tconstr_integer\n   └──Expr: Lambda: y: TArrow: Tconstr_integer -\u003e Tconstr_integer\n      └──Expr: Bin Op: +: Tconstr_integer\n         └──Expr: Var: y: Tconstr_integer\n         └──Expr: Int:1\n   └──Expr: App: Tconstr_integer\n      └──Expr: Var: x: TArrow: Tconstr_integer -\u003e Tconstr_integer\n      └──Expr: Int:1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmununki%2Fspice-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmununki%2Fspice-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmununki%2Fspice-compiler/lists"}