{"id":15486152,"url":"https://github.com/lesliezhu/monkey-cpp","last_synced_at":"2025-06-14T22:41:19.197Z","repository":{"id":76528911,"uuid":"523592720","full_name":"LeslieZhu/monkey-cpp","owner":"LeslieZhu","description":"Writing An Interpreter/Compiler In C++","archived":false,"fork":false,"pushed_at":"2024-03-25T14:25:47.000Z","size":701,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T07:05:42.591Z","etag":null,"topics":["interpreter","monkey","monkey-language","monkey-programming-language"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeslieZhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-08-11T05:08:06.000Z","updated_at":"2024-08-21T16:03:02.000Z","dependencies_parsed_at":"2025-03-04T01:31:53.836Z","dependency_job_id":"aea9e511-879e-4bfe-b1b8-4d199e9e40fe","html_url":"https://github.com/LeslieZhu/monkey-cpp","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeslieZhu%2Fmonkey-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeslieZhu%2Fmonkey-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeslieZhu%2Fmonkey-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeslieZhu%2Fmonkey-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeslieZhu","download_url":"https://codeload.github.com/LeslieZhu/monkey-cpp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250286353,"owners_count":21405415,"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","monkey","monkey-language","monkey-programming-language"],"created_at":"2024-10-02T06:06:45.308Z","updated_at":"2025-04-22T17:26:32.377Z","avatar_url":"https://github.com/LeslieZhu.png","language":"C++","readme":"# Monkey: Writing An Interpreter/Compiler In C++\n\nReference the book [Writing An Interpreter In Go](https://interpreterbook.com/) and [Writing A Compiler In Go](https://compilerbook.com/).\n\nBut re-write the Monkey interpreter/compiler with C++.\n\n- src/01: token and lexer\n- src/02: parser\n- src/03: evaluation\n- src/04: builtin funcs, string, array, hashmap\n- src/05: bytecode and virutal machine, OpConstant and OpAdd only\n- src/06: expression and condition statement\n- src/07: symbol table, string, array, hashmap and index expression\n- src/08: function\n- src/09: butiltin functions\n- src/10: function closures and benchmark fibonacci\n\nAlso see the [MinYiLife Blogs](http://lesliezhu.com/blog/tags/#compiler-and-interpreter)\n\n# Run\n\nFor example:\n\n```\n$ cd src/10/\n$ mkdir build/\n$ cd build/\n$ cmake ..\n$ make\n\n$ ./test_monkey\n\n$ ./monkey\n\nHello lesliezhu! This is the Monkey-CPP programming language!\nFeel free to type in commands\n\u003e\u003e let add = fn(x,y){ return x + y; }\n\u003e\u003e add(3,4)\n7\n\u003e\u003e\n```\n\n# Requires\n\n- C++17\n- [GoogleTest(Version 1.10.0)](https://github.com/google/googletest)\n- [gflags(Version 2.2.2)](https://github.com/gflags/gflags)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesliezhu%2Fmonkey-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flesliezhu%2Fmonkey-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flesliezhu%2Fmonkey-cpp/lists"}