{"id":15402204,"url":"https://github.com/liby99/menhera","last_synced_at":"2026-03-18T00:45:01.468Z","repository":{"id":90735964,"uuid":"134981058","full_name":"Liby99/menhera","owner":"Liby99","description":"Menhera, a javascript like functional programming language","archived":false,"fork":false,"pushed_at":"2019-12-29T03:44:07.000Z","size":261,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-25T01:39:33.590Z","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/Liby99.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":"2018-05-26T17:20:52.000Z","updated_at":"2024-02-14T21:52:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"c98c7bb6-d29f-4ba9-be74-1725c8ed8aba","html_url":"https://github.com/Liby99/menhera","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/Liby99%2Fmenhera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Fmenhera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Fmenhera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Liby99%2Fmenhera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Liby99","download_url":"https://codeload.github.com/Liby99/menhera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228549957,"owners_count":17935432,"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-01T16:01:49.595Z","updated_at":"2026-03-18T00:44:56.427Z","avatar_url":"https://github.com/Liby99.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Menhera Lang\n\nA toy language \u0026 interpreter mocking the design of OCaml and JavaScript, statically typed with inference.\n\n```\nlet sum = (a, b) =\u003e a + b in\nsum(3, 5)\n```\n\n## Syntax\n\nInteger, boolean, let and if:\n\n```\nlet a: bool = true in\nlet b: int = 3 in\nif b == 4 then a\nelse false\n```\n\nIf you don't want to write the type explicitly, the above program will become\n\n```\nlet a = true in\nlet b = 3 in\nif b == 4 then a\nelse false\n```\n\nFunction and function calls:\n\n```\nlet sum = (a, b) =\u003e a + b in\nsum(3, 5)\n```\n\nYou can of course add explicit type definition\n\n```\nlet sum : (int, int) -\u003e int =\n  (a : int, b : int) : int =\u003e\n    a + b\nin\nsum(3, 5)\n```\n\n## How to build \u0026 run\n\nClone the repository. First please make sure you installed `ocaml` \u003e= 4.08, `ocamlbuild`, `menhir` and `ppx_derive`. Then you can simply do\n\n```\n$ make\n```\n\nTo run one of our examples, please\n\n```\n$ ./menhera -show-result examples/function/sum.mhr\n```\n\nThe argument `-show-result` means that it will print out the raw format of the result value after running this file.\n\n## How to test\n\n```\n$ make test\n$ ./test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliby99%2Fmenhera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliby99%2Fmenhera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliby99%2Fmenhera/lists"}