{"id":23102562,"url":"https://github.com/charlieroth/monkey_ex","last_synced_at":"2025-09-01T19:39:08.584Z","repository":{"id":170002087,"uuid":"643938949","full_name":"charlieroth/monkey_ex","owner":"charlieroth","description":"Monkey programming language implemented in Elixir","archived":false,"fork":false,"pushed_at":"2023-09-09T15:52:50.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-31T02:49:32.008Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/charlieroth.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":"2023-05-22T13:20:37.000Z","updated_at":"2023-09-06T09:44:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"f86cab19-1efa-428a-80af-afaf821d478e","html_url":"https://github.com/charlieroth/monkey_ex","commit_stats":null,"previous_names":["charlieroth/monkeyex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlieroth/monkey_ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fmonkey_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fmonkey_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fmonkey_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fmonkey_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlieroth","download_url":"https://codeload.github.com/charlieroth/monkey_ex/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fmonkey_ex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273182662,"owners_count":25059809,"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-09-01T02:00:09.058Z","response_time":120,"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":["elixir"],"created_at":"2024-12-16T23:59:57.162Z","updated_at":"2025-09-01T19:39:08.502Z","avatar_url":"https://github.com/charlieroth.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `MonkeyEx`\n\nThe Monkey programming language from the book [Writing An Interpreter In Go](https://interpreterbook.com) by Thorsten Ball; implemented in Elixir 🧙‍♂️.\n\n## How To Use\n\nStart a `iex` shell\n\n```bash\n$ iex -S mix\niex(1)\u003e MonkeyEx.run(\"\"\" \n...(1)\u003e # Write program here \n...(1)\u003e \"\"\")\n```\n\nUse `MonkeyEx.run/1` to execute a program that is supported. See examples below for an idea of what is available.\n\n## Examples\n\n### `let` Statements\n\n```bash\niex(1)\u003e MonkeyEx.run(\"\"\"\n...(1)\u003e let x = 5;\n...(1)\u003e let y = 10;\n...(1)\u003e x + y;\n...(1)\u003e \"\"\")\n15\n```\n\n### String Concatenation\n\n```bash\niex(2)\u003e MonkeyEx.run(\"\"\"\n...(2)\u003e let firstName = \"Charlie\";\n...(2)\u003e let lastName = \"Roth\";\n...(2)\u003e let fullName = firstName + \\\" \\\" + lastName;\n...(2)\u003e fullName;\n...(2)\u003e \"\"\")\n\"Charlie Roth\"\n```\n\n### Functions\n\n```bash\niex(1)\u003e MonkeyEx.run(\"\"\"\n...(1)\u003e let add = fn(x, y) {\n...(1)\u003e   return x + y;\n...(1)\u003e }\n...(1)\u003e add(5, 10);\n...(1)\u003e \"\"\")\n15\n```\n\n### `if/else` Statements\n\n```bash\niex(1)\u003e MonkeyEx.run(\"\"\"\n...(1)\u003e let age = 21;\n...(1)\u003e \n...(1)\u003e let canDrive = fn(ageOfPerson) {\n...(1)\u003e   if (ageOfPerson \u003e 18) {\n...(1)\u003e     return true;\n...(1)\u003e   } else {\n...(1)\u003e     return false;\n...(1)\u003e   }\n...(1)\u003e }\n...(1)\u003e \n...(1)\u003e canDrive(age);\n...(1)\u003e \"\"\")\ntrue\n```\n\n### Infix Expressions\n\n```bash\niex(2)\u003e MonkeyEx.run(\"\"\"\n...(2)\u003e let age = 18;\n...(2)\u003e let ageInThreeYears = fn(age) { return age + 3; }\n...(2)\u003e let canDrive = fn(age) {\n...(2)\u003e   if (age \u003e 18) {\n...(2)\u003e     return true;\n...(2)\u003e   } else {\n...(2)\u003e     return false;\n...(2)\u003e   }\n...(2)\u003e }\n...(2)\u003e canDrive(ageInThreeYears(18));\n...(2)\u003e \"\"\")\ntrue\n```\n\n### Prefix Operators\n\n```bash\niex(2)\u003e MonkeyEx.run(\"\"\"\n...(2)\u003e let negTen = -10;\n...(2)\u003e let one = 1;\n...(2)\u003e one + negTen;\n...(2)\u003e \"\"\")\n-9\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlieroth%2Fmonkey_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlieroth%2Fmonkey_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlieroth%2Fmonkey_ex/lists"}