{"id":19645431,"url":"https://github.com/corani/olox","last_synced_at":"2026-03-19T10:56:47.412Z","repository":{"id":45724398,"uuid":"513786447","full_name":"corani/olox","owner":"corani","description":"Lox in Odin","archived":false,"fork":false,"pushed_at":"2022-08-03T11:09:59.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-09T20:48:26.386Z","etag":null,"topics":["interpreter","language","lox","odin"],"latest_commit_sha":null,"homepage":"","language":"Odin","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/corani.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-14T06:30:53.000Z","updated_at":"2024-08-20T14:03:23.000Z","dependencies_parsed_at":"2022-08-21T23:41:26.568Z","dependency_job_id":null,"html_url":"https://github.com/corani/olox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corani%2Folox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corani%2Folox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corani%2Folox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/corani%2Folox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/corani","download_url":"https://codeload.github.com/corani/olox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240952975,"owners_count":19884020,"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","language","lox","odin"],"created_at":"2024-11-11T14:33:57.337Z","updated_at":"2025-10-19T04:46:14.789Z","avatar_url":"https://github.com/corani.png","language":"Odin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Olox\n\nThe [Lox](https://craftinginterpreters.com/) interpreter in [Odin](https://odin-lang.org/).\n\nThe repo for the \"Crafting Interpreters\" book can be found here: https://github.com/munificent/craftinginterpreters\n\nDisclaimer: I started on this knowing absolutely nothing about Odin and am using this project\nas a way to get to know the language. The implementation therefor is definitely not idiomatic\nOdin, and probably very inefficient and \"ugly\".\n\nIf you're an Odin expert, feel free to point out what could be done better!\n\n## Setup\n\nMake sure you have llvm and clang installed. I had to do the following to get it to work properly:\n\n```bash\n$ sudo apt install llvm-11 clang-11\n$ sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-11 100\n$ sudo update-alternatives --install /usr/bin/llvm-config llvm-config /usr/bin/llvm-config-11 100\n```\n\nInstall Odin from source:\n\n```bash\n$ git clone https://github.com/odin-lang/Odin\n$ cd Odin\n$ make\n```\n\nMake sure to add the `Odin` folder to your path (or *symlink* the Odin executable from a location\nin your path).\n\n## Compile and run\n\n```bash\n$ ./build.sh \n$ bin/olox examples/fix.lox\n```\n\n## TODO\n\nLook at subtype polymorphism and vtables\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorani%2Folox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcorani%2Folox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcorani%2Folox/lists"}