{"id":21492715,"url":"https://github.com/nerodesu017/interpreter","last_synced_at":"2025-03-17T11:27:28.220Z","repository":{"id":242244881,"uuid":"808592642","full_name":"nerodesu017/interpreter","owner":"nerodesu017","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-05T18:01:25.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-23T21:17:22.365Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/nerodesu017.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}},"created_at":"2024-05-31T11:46:06.000Z","updated_at":"2024-06-24T04:10:29.000Z","dependencies_parsed_at":"2024-06-05T15:01:12.243Z","dependency_job_id":"db8b389c-74d3-4761-b879-22a22ebe68a7","html_url":"https://github.com/nerodesu017/interpreter","commit_stats":null,"previous_names":["nerodesu017/interpreter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerodesu017%2Finterpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerodesu017%2Finterpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerodesu017%2Finterpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerodesu017%2Finterpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerodesu017","download_url":"https://codeload.github.com/nerodesu017/interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244024071,"owners_count":20385371,"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":[],"created_at":"2024-11-23T15:31:27.371Z","updated_at":"2025-03-17T11:27:28.196Z","avatar_url":"https://github.com/nerodesu017.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lox in Rust\n\n## Context\n\nThis project is done following the guide at https://craftinginterpreters.com/ but written in rust\n\n## Project structure\n\n  - main.rs     - entrypoint - here we decide if usage is correct and if we are running a file or doing REPL - the source file is transferred to a Lox class instance\n  - lox.rs      - the global Lox class that should be a singleton since it's one instance per run - here is where we give a green light to the runner. We also implement the ScannerError trait here so that we can report errors\n  - scanner.rs  - the scanner of the language - here\n  - token.rs    - the implementation of the Token and TokenType, also the implementation of the Display trait for them both\n  - literal.rs  - implementation of the Literal enum and the Display trait for it\n  - error.rs    - definition of the ScannerError trait to be implemented by the Lox struct\n\n  - expr.rs     - defines the `Expr` enum and exports all the expressions (which are in turn generated using [nerodesu017/interpreter-code-gen](https://github.com/nerodesu017/interpreter-code-gen))\n  - visitor.rs  - this contains the basic Visitor template needed for creating all sorts of Visitors based on the [Visitor Pattern](https://rust-unofficial.github.io/patterns/patterns/behavioural/visitor.html) - sadly, I could not fully decide on if I should use the Java-like Visitor Pattern, which uses Polymorphic Dispatching, or use the FP way and make use of `match`, thus, even though the current logic uses `match`, the `Visitor` trait is there, besides not being used - part of it generated using [nerodesu017/interpreter-code-gen](https://github.com/nerodesu017/interpreter-code-gen)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerodesu017%2Finterpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerodesu017%2Finterpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerodesu017%2Finterpreter/lists"}