{"id":31760049,"url":"https://github.com/chamal1120/lox","last_synced_at":"2025-10-09T21:19:54.519Z","repository":{"id":318136768,"uuid":"980249801","full_name":"Chamal1120/lox","owner":"Chamal1120","description":"My implementation of the Lox Language from the book \"Crafting Interpreters\" by Robert Nystorm (WIP)","archived":false,"fork":false,"pushed_at":"2025-10-05T09:52:10.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T11:39:04.945Z","etag":null,"topics":["lexer-parser","lox-language"],"latest_commit_sha":null,"homepage":"https://craftinginterpreters.com","language":"Java","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/Chamal1120.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-08T20:20:52.000Z","updated_at":"2025-10-05T09:52:13.000Z","dependencies_parsed_at":"2025-10-05T11:39:06.631Z","dependency_job_id":"66a112c4-2578-448f-9f70-74ce19a25f36","html_url":"https://github.com/Chamal1120/lox","commit_stats":null,"previous_names":["chamal1120/lox"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/Chamal1120/lox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chamal1120%2Flox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chamal1120%2Flox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chamal1120%2Flox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chamal1120%2Flox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Chamal1120","download_url":"https://codeload.github.com/Chamal1120/lox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Chamal1120%2Flox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002069,"owners_count":26083285,"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","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"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":["lexer-parser","lox-language"],"created_at":"2025-10-09T21:19:31.954Z","updated_at":"2025-10-09T21:19:54.512Z","avatar_url":"https://github.com/Chamal1120.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# Lox Programming Language\n\n-- My implementations for Crafting Interpreteres by Bob Nystorm -- \n\n\u003c/div\u003e\n\n## TODO\n\n- [x] main function that runs the REPL and Compiler\n- [x] Data Structure for the lexemes (Token and TokenType enum)\n- [x] scanner\n- [ ] parser\n- [ ] compiler\n\n\u003e [!NOTE]\n\u003e Things might change here coz I'm still following this book.\n\n## How to run\n\n1. Clone repo (Duh..!)\n\n2. Create a `test.lox` file:\n\n```\nprint \"Hello, Lox!\";\n\ntrue;  // Not false.\nfalse; // Not *not* false.\n\n1234;  // An integer.\n12.34; // A decimal number.\n\n\"I am a string\";\n\"\";    // The empty string.\n\"123\"; // This is a string, not a number.\n\na = 1;\nb = 2;\nc = a + b;\nd = a / b;\n\nprint c;\nprint d;\n```\n\n3. Make sure you have [Apache Maven](https://maven.apache.org/install.html) available on your `PATH`.\n\n4. Compile using the given script (wraps `mvn clean compile`):\n\n```bash\n./compile.sh\n```\n\n5. Run using the given script (re-compiles and launches the AST printer for now):\n\n```bash\n./run.sh\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamal1120%2Flox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchamal1120%2Flox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchamal1120%2Flox/lists"}