{"id":15650901,"url":"https://github.com/mgechev/typed-calc","last_synced_at":"2025-04-30T18:11:29.211Z","repository":{"id":66062730,"uuid":"82767139","full_name":"mgechev/typed-calc","owner":"mgechev","description":"Interpreter for simply typed lambda calculus implemented in JavaScript λ","archived":false,"fork":false,"pushed_at":"2017-08-07T00:50:00.000Z","size":29,"stargazers_count":34,"open_issues_count":2,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-25T11:57:29.621Z","etag":null,"topics":["interpreter","lambda-calculus","type-system"],"latest_commit_sha":null,"homepage":"https://blog.mgechev.com/2017/08/05/typed-lambda-calculus-create-type-checker-transpiler-compiler-javascript/","language":"JavaScript","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/mgechev.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":"2017-02-22T06:03:39.000Z","updated_at":"2023-10-30T04:58:11.000Z","dependencies_parsed_at":"2023-05-15T02:45:47.459Z","dependency_job_id":null,"html_url":"https://github.com/mgechev/typed-calc","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/mgechev%2Ftyped-calc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftyped-calc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftyped-calc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgechev%2Ftyped-calc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgechev","download_url":"https://codeload.github.com/mgechev/typed-calc/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251758170,"owners_count":21638989,"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":["interpreter","lambda-calculus","type-system"],"created_at":"2024-10-03T12:36:16.185Z","updated_at":"2025-04-30T18:11:29.184Z","avatar_url":"https://github.com/mgechev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simply Typed Lambda Calculus\n\nA type checker and interpreter for simply typed lambda calculus written in JavaScript.\n\n# Example\n\nThe following program:\n\n```\n(λ a: Int → a) if (λ a: Int → iszero a) pred 0 then succ 0 else 0\n```\n\nIs correct and evaluates to `0`.\n\n# How to use?\n\n## Interpreter\n\n```\n$ node index.js demo/correct1.lambda\n\n0\n```\n\n## Compiler\n\n```\n$ node index.js compile demo/correct1.lambda\n\n(function(a) {\n  return a;\n})(\n  (function(a) {\n    return a === 0;\n  })(0 - 1)\n    ? 0 + 1\n    : 0\n);\n```\n\n# License\n\nMIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgechev%2Ftyped-calc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgechev%2Ftyped-calc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgechev%2Ftyped-calc/lists"}