{"id":26869410,"url":"https://github.com/helabenkhalfallah/zoodle","last_synced_at":"2025-08-12T12:39:31.166Z","repository":{"id":285157224,"uuid":"957236118","full_name":"helabenkhalfallah/zoodle","owner":"helabenkhalfallah","description":"Zoodle is a compiler for a minimalist Toy Language written in Zig. It compiles source code into WebAssembly (WASM), with a focus on understanding low-level systems programming, memory management, concurrency, and compiler internals.","archived":false,"fork":false,"pushed_at":"2025-03-29T21:55:23.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T22:27:46.940Z","etag":null,"topics":["compiler","zig","zig-lang","ziglang"],"latest_commit_sha":null,"homepage":"","language":null,"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/helabenkhalfallah.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}},"created_at":"2025-03-29T21:46:41.000Z","updated_at":"2025-03-29T21:55:26.000Z","dependencies_parsed_at":"2025-03-29T22:37:48.412Z","dependency_job_id":null,"html_url":"https://github.com/helabenkhalfallah/zoodle","commit_stats":null,"previous_names":["helabenkhalfallah/zoodle"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/helabenkhalfallah/zoodle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helabenkhalfallah%2Fzoodle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helabenkhalfallah%2Fzoodle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helabenkhalfallah%2Fzoodle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helabenkhalfallah%2Fzoodle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/helabenkhalfallah","download_url":"https://codeload.github.com/helabenkhalfallah/zoodle/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/helabenkhalfallah%2Fzoodle/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270063328,"owners_count":24520739,"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-12T02:00:09.011Z","response_time":80,"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","zig","zig-lang","ziglang"],"created_at":"2025-03-31T06:16:48.493Z","updated_at":"2025-08-12T12:39:31.121Z","avatar_url":"https://github.com/helabenkhalfallah.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zoodle\n\n**Zoodle** is a compiler for a minimalist Toy Language written in [Zig](https://ziglang.org). It compiles source code into [WebAssembly (WASM)](https://webassembly.org/), with a focus on understanding low-level systems programming, memory management, concurrency, and compiler internals.\n\nThis project is educational and hands-on — not just a compiler, but a complete deep dive into modern systems programming with Zig.\n\n---\n\n## 🚀 Project Goals\n\n- Build a real compiler from scratch using Zig\n- Learn memory allocation, concurrency, and binary encoding\n- Output real `.wasm` binaries that run in browsers and WASM runtimes\n\n---\n\n## 🧩 Toy Language Features\n\nThe Toy Language is intentionally small but expressive. It supports:\n\n- `int`, `boolean`, and `string` types\n- Immutable variables using `let`\n- Arithmetic and logical expressions\n- Functions with typed parameters and return values\n- Control flow: `if`, `while`, `return`\n- Entry point: `fn main() -\u003e int`\n\nExample program:\n\n```tl\nfn add(a: int, b: int) -\u003e int {\n  return a + b;\n}\n\nfn main() -\u003e int {\n  let result: int = add(3, 4);\n  return result;\n}\n```\n\n---\n\n## 📦 Compiler Pipeline\n\nZoodle's compilation steps:\n\n1. **Lexing** – Breaks source code into tokens\n2. **Parsing** – Converts tokens to an Abstract Syntax Tree (AST)\n3. **Semantic Analysis** – Validates types and scoping\n4. **IR Generation** – Produces an intermediate representation\n5. **WASM Codegen** – Converts IR into `.wasm` binary\n6. **CLI / REPL** – Runs and interacts with the compiled code\n\n---\n\n## 🔧 Technologies\n\n- [Zig](https://ziglang.org) – Systems programming language\n- [WebAssembly (binary + WAT format)](https://webassembly.org/)\n- Custom parser, memory allocators, and concurrency features\n\n---\n\n## 📚 Documentation\n\n- [Evaluating C, C++, Rust, and Zig for Modern Low-Level Development (Design Philosophies)](https://helabenkhalfallah.com/2025/03/13/evaluating-c-cpp-rust-and-zig-for-modern-low-level-development/)\n- [Evaluating C, C++, Rust, and Zig for Modern Low-Level Development (Memory Management)](https://helabenkhalfallah.com/2025/03/15/evaluating-c-c-rust-and-zig-for-modern-low-level-development-memory-management/)\n- [Evaluating C, C++, Rust, and Zig for Modern Low-Level Development (Concurrency Mechanisms)](https://helabenkhalfallah.com/2025/03/15/evaluating-c-c-rust-and-zig-for-modern-low-level-development-concurrency-mechanisms/)\n- [Evaluating C, C++, Rust, and Zig for Modern Low-Level Development (Error Handling)](https://helabenkhalfallah.com/2025/03/15/evaluating-c-c-rust-and-zig-for-modern-low-level-development-error-handling/)\n- [Evaluating C, C++, Rust, and Zig for Modern Low-Level Development (Developer Experience, Portability, Benchmarks and Adoption)](https://helabenkhalfallah.com/2025/03/15/evaluating-c-c-rust-and-zig-for-modern-low-level-development-dx-portability-benchmarks-and-adoption/)\n\n---\n\n## 🤝 Contributing\n\nThis is a learning-focused project. Contributions, bug reports, and questions are welcome! Just open an issue or a pull request.\n\n---\n\n## 📄 License\n\nMIT License. See `LICENSE` file for details.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelabenkhalfallah%2Fzoodle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhelabenkhalfallah%2Fzoodle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhelabenkhalfallah%2Fzoodle/lists"}