{"id":17724186,"url":"https://github.com/gengjiawen/monkey-rust","last_synced_at":"2025-04-04T11:14:25.316Z","repository":{"id":39204980,"uuid":"302375187","full_name":"gengjiawen/monkey-rust","owner":"gengjiawen","description":"A dancing with interpreter and compiler","archived":false,"fork":false,"pushed_at":"2025-04-02T01:40:54.000Z","size":4753,"stargazers_count":63,"open_issues_count":19,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T12:48:40.443Z","etag":null,"topics":["compiler","interpreter","learning-by-doing","monkey","monkey-programming-language","rust"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gengjiawen.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2020-10-08T14:55:00.000Z","updated_at":"2025-04-02T01:39:34.000Z","dependencies_parsed_at":"2025-01-01T15:06:37.689Z","dependency_job_id":"2b1aed89-54e2-4a08-9de2-ec3963f6f535","html_url":"https://github.com/gengjiawen/monkey-rust","commit_stats":{"total_commits":279,"total_committers":5,"mean_commits":55.8,"dds":0.2222222222222222,"last_synced_commit":"7ef925b5338f1997ccab7468735ab845229804a7"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gengjiawen%2Fmonkey-rust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gengjiawen%2Fmonkey-rust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gengjiawen%2Fmonkey-rust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gengjiawen%2Fmonkey-rust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gengjiawen","download_url":"https://codeload.github.com/gengjiawen/monkey-rust/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247166168,"owners_count":20894654,"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":["compiler","interpreter","learning-by-doing","monkey","monkey-programming-language","rust"],"created_at":"2024-10-25T15:45:16.471Z","updated_at":"2025-04-04T11:14:25.295Z","avatar_url":"https://github.com/gengjiawen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# monkey-rust\n\n![Rust](https://github.com/gengjiawen/monkey-rust/workflows/Rust/badge.svg)\n[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/?workspaceClass=g1-large\u0026editor=code#https://github.com/gengjiawen/monkey-rust)\n[![monkey-interpreter](https://img.shields.io/crates/v/monkey-interpreter)](https://crates.io/crates/monkey-interpreter)\n[![npm version](https://img.shields.io/npm/v/@gengjiawen/monkey-wasm)](https://www.npmjs.com/package/@gengjiawen/monkey-wasm)\n\nAn interpreter for the Monkey programming language written in Rust\n\n![The Monkey Programming Language](https://cloud.githubusercontent.com/assets/1013641/22617482/9c60c27c-eb09-11e6-9dfa-b04c7fe498ea.png)\n\n## What’s Monkey?\n\nMonkey has a C-like syntax, supports **variable bindings**, **prefix** and **infix operators**, has **first-class** and **higher-order functions**, can handle **closures** with ease and has **integers**, **booleans**, **arrays** and **hashes** built-in.\n\nOfficial site is: https://monkeylang.org/. It's has various implementation languages :).\n\nThere is a book about learning how to make an interpreter: [Writing An Interpreter In Go](https://interpreterbook.com/#the-monkey-programming-language). This is where the Monkey programming language come from.\n\n## Features\n\n- Split packages to make everything minimum\n- **REPL**: A Read-Eval-Print-Loop (REPL) for Monkey tokenizer, parser, evaluator, compiler\n- location info for ast\n- test for every module\n- **Wasm**: A WebAssembly target, thus run monkey on browser is directly supported.\n- bytecode viewer from source\n\n### AST Online playground\nhttps://astexplorer.net/#/gist/e23a81ce309e8fcffe95ddd1b5661061/01d0b4b078304ddd9639eae9f4e6d342e2b9d075\n\n### Compiler playground\nhttps://gengjiawen.github.io/monkey-rust/\n\n## Instruction\n\n### Build and test\n\n```bash\n$ cargo build\n$ cargo test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgengjiawen%2Fmonkey-rust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgengjiawen%2Fmonkey-rust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgengjiawen%2Fmonkey-rust/lists"}