{"id":28717409,"url":"https://github.com/ananthvk/cpp-lox","last_synced_at":"2025-06-15T03:15:39.356Z","repository":{"id":298001675,"uuid":"981589855","full_name":"ananthvk/cpp-lox","owner":"ananthvk","description":"C++ implementation of Lox programming language using a bytecode VM","archived":false,"fork":false,"pushed_at":"2025-06-08T20:53:25.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-08T21:31:20.440Z","etag":null,"topics":["bytecode-compiler","cpp20","crafting-interpreters","craftinginterpreters","lox","lox-interpreter","lox-language","vm"],"latest_commit_sha":null,"homepage":"","language":"C++","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/ananthvk.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,"zenodo":null}},"created_at":"2025-05-11T13:04:54.000Z","updated_at":"2025-06-08T20:55:09.000Z","dependencies_parsed_at":"2025-06-08T21:31:22.735Z","dependency_job_id":"eebf8fee-5346-4a6e-85c2-1e5f0ef7ac31","html_url":"https://github.com/ananthvk/cpp-lox","commit_stats":null,"previous_names":["ananthvk/cpp-lox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ananthvk/cpp-lox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananthvk%2Fcpp-lox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananthvk%2Fcpp-lox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananthvk%2Fcpp-lox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananthvk%2Fcpp-lox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ananthvk","download_url":"https://codeload.github.com/ananthvk/cpp-lox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ananthvk%2Fcpp-lox/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259914924,"owners_count":22931334,"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":["bytecode-compiler","cpp20","crafting-interpreters","craftinginterpreters","lox","lox-interpreter","lox-language","vm"],"created_at":"2025-06-15T03:15:38.487Z","updated_at":"2025-06-15T03:15:39.263Z","avatar_url":"https://github.com/ananthvk.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cpp-lox\n\nMy implementation of second part of Lox programming language from [Crafting interpreters](https://www.craftinginterpreters.com/contents.html) in C++. This implementation uses a bytecode VM to execute the programs.\n\n## How to run?\n\nInstall `meson`, `ninja` and a C++ 20 capable compiler\n\n```\n$ meson setup builddir\n$ cd builddir\n$ ninja -j8\n```\n\nIf you are on linux, run\n```\n$ ./src/cpplox\n```\n\nOn windows, run\n```\n.\\src\\cpplox.exe\n```\n\n## To run tests\n\nTo run tests, you need to have `Python 3`\n\nFirst install `pytest`, a test automation library used to test programs.\n\nCreate a virtual environment\n```\n$ python -m venv .venv\n```\n\nInstall dependencies\n```\n$ pip install -r requirements.txt\n```\n\nRun tests\n```\n$ meson setup builddir -Denable-tests=true\n$ cd builddir\n$ ninja -j8\n$ meson test -v\n```\n\n## Development build\n\nHave `Clang` installed along with `asan`. You also need to follow the steps in the above section, `pytest` must be installed and available on the `PATH`\n\nThen run the following command,\n```\n$ ./development.sh\n```\n\n## TODO\n- [ ] Fix division by zero error\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananthvk%2Fcpp-lox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fananthvk%2Fcpp-lox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fananthvk%2Fcpp-lox/lists"}