{"id":19420151,"url":"https://github.com/lmarzocchetti/cpplox","last_synced_at":"2026-06-19T07:31:55.980Z","repository":{"id":224072163,"uuid":"762337560","full_name":"lmarzocchetti/cpplox","owner":"lmarzocchetti","description":"clox interpreter in C++","archived":false,"fork":false,"pushed_at":"2025-05-03T11:29:19.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-03T11:32:13.761Z","etag":null,"topics":["compiler","cpp","cpp20","crafting-interpreters","interpreter","virtual-machine"],"latest_commit_sha":null,"homepage":"","language":"C++","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/lmarzocchetti.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,"zenodo":null}},"created_at":"2024-02-23T15:13:58.000Z","updated_at":"2025-05-03T11:29:22.000Z","dependencies_parsed_at":"2024-11-10T13:22:15.074Z","dependency_job_id":"9f4d9537-d949-4044-99b0-c78952293bf3","html_url":"https://github.com/lmarzocchetti/cpplox","commit_stats":null,"previous_names":["lmarzocchetti/cpplox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lmarzocchetti/cpplox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmarzocchetti%2Fcpplox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmarzocchetti%2Fcpplox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmarzocchetti%2Fcpplox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmarzocchetti%2Fcpplox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmarzocchetti","download_url":"https://codeload.github.com/lmarzocchetti/cpplox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmarzocchetti%2Fcpplox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34522034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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":["compiler","cpp","cpp20","crafting-interpreters","interpreter","virtual-machine"],"created_at":"2024-11-10T13:21:25.612Z","updated_at":"2026-06-19T07:31:55.975Z","avatar_url":"https://github.com/lmarzocchetti.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpplox\n\n## Chapter that i'm implementing -\u003e 17\n\n### My implementation of CLox programming language from crafting interpreters but in C++20\n\nI'm following the book but i'm trying to convert all the C code to C++ (C++20 standard), so the implementation is really\ndifferent from the book. However the content is the same as the original C code, but with some exercise solved.\nFor now i've implemented these extra parts:\n\n- [x] OP_CONSTANT_LONG: Operation in the VM to index not 1 byte like the standard OP_CONSTANT but 3 bytes (chapter 14, num 2)\n- [x] Dynamic stack size: Implemented with a c++ standard library stack (chapter 15, num 3)\n- [x] Faster OP_NEGATE: Instaed of popping the value, negate and push. I simply took the reference of the top element and negate it (Chapter 15, num 4)\n\n### Optimization to implement\nThese are some optimization that i want implement, but i'm planning to do after i can run some code:\n- [ ] Run-length-encoding: for line number (Chapter 14: num 1)\n\n#### C++23 thingy\nI don't know if i want to implement this, because not all compiler versions supports it and c++23 implementation is not finished (at least gcc and clang)\n- [ ] BINARY_OP C++: Get rid of the C macro for the BINARY_OP, and replace it with a constexpr std::function (only available in c++23)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmarzocchetti%2Fcpplox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmarzocchetti%2Fcpplox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmarzocchetti%2Fcpplox/lists"}