{"id":20978900,"url":"https://github.com/jrmoulton/interpreter-rs","last_synced_at":"2025-08-27T09:46:22.547Z","repository":{"id":65378134,"uuid":"532408124","full_name":"jrmoulton/interpreter-rs","owner":"jrmoulton","description":"An interpreter and compiler built in Rust","archived":false,"fork":false,"pushed_at":"2023-02-08T07:06:41.000Z","size":1946,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-24T15:29:17.126Z","etag":null,"topics":["compiler","interpreter","lexer","parser","rust"],"latest_commit_sha":null,"homepage":"","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/jrmoulton.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":"2022-09-04T01:03:45.000Z","updated_at":"2023-03-24T05:41:01.000Z","dependencies_parsed_at":"2023-02-24T22:00:33.514Z","dependency_job_id":null,"html_url":"https://github.com/jrmoulton/interpreter-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jrmoulton/interpreter-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmoulton%2Finterpreter-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmoulton%2Finterpreter-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmoulton%2Finterpreter-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmoulton%2Finterpreter-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jrmoulton","download_url":"https://codeload.github.com/jrmoulton/interpreter-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jrmoulton%2Finterpreter-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272315713,"owners_count":24912617,"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-08-27T02:00:09.397Z","response_time":76,"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","interpreter","lexer","parser","rust"],"created_at":"2024-11-19T05:10:02.154Z","updated_at":"2025-08-27T09:46:22.475Z","avatar_url":"https://github.com/jrmoulton.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Interpreter-rs\n\n[![Documentation](https://docs.rs/dacx0501/badge.svg)](https://docs.rs/dacx0501)\n\nA custom hand-written interpreter ***and*** compiler from scratch (based on \"Building an interpreter in Go\" by Thorsten Ball)\n\n## What is Interpreter-rs\n\nThis project is an interpreter and a compiler (these are separate language implementations that share the same parser) for an expression heavy dynamically typed language with python/rust like syntax. \n\n## What is supported\n\nThis language supports expressions, functions, assignment, recursion, closures as well as a few language built-ins. The interpreter/evaluator has a more complete implementation than the compiler currently. \n\n## Examples\n\n### Recursion Example with Fibbonacci\n```rust\nlet fib = fn(n) {\n   if n \u003c 2 {\n       n\n   } else {\n       fib(n-1) + fib(n-2)\n   }\n};\nfib(25)\n```\n\n### Closure Example\n``` rust\nlet new_adder = fn(x) { \n  fn(y) {x + y} // Implicit return of a function that adds y to the x (this is the magic of the closure)\n}; \nlet add_two = new_adder(2);\nadd_two(3) // -\u003e returns 5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmoulton%2Finterpreter-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjrmoulton%2Finterpreter-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjrmoulton%2Finterpreter-rs/lists"}