{"id":44685976,"url":"https://github.com/almontasser/crust","last_synced_at":"2026-02-15T06:03:51.546Z","repository":{"id":213988593,"uuid":"732152507","full_name":"almontasser/crust","owner":"almontasser","description":"A C-like programming language that is similar to Rust's syntax. Toy programming language.","archived":false,"fork":false,"pushed_at":"2025-11-28T22:32:57.000Z","size":330,"stargazers_count":56,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-11-30T21:25:13.324Z","etag":null,"topics":["c","compiler","programming-language","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/almontasser.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":"2023-12-15T19:22:32.000Z","updated_at":"2025-11-25T14:07:37.000Z","dependencies_parsed_at":"2024-04-26T22:27:28.958Z","dependency_job_id":"106b535a-ee1c-4560-8949-61cd53cf2786","html_url":"https://github.com/almontasser/crust","commit_stats":null,"previous_names":["almontasser/zcompiler","almontasser/crust"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/almontasser/crust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almontasser%2Fcrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almontasser%2Fcrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almontasser%2Fcrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almontasser%2Fcrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/almontasser","download_url":"https://codeload.github.com/almontasser/crust/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/almontasser%2Fcrust/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29471167,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T05:26:30.465Z","status":"ssl_error","status_checked_at":"2026-02-15T05:26:21.858Z","response_time":118,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","compiler","programming-language","rust"],"created_at":"2026-02-15T06:03:50.542Z","updated_at":"2026-02-15T06:03:51.538Z","avatar_url":"https://github.com/almontasser.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Crust](https://github.com/almontasser/crust/assets/19656179/6ac3df79-264b-464b-a180-11d1870445c8)\n\n# CRUST\n\nThis is a hobby project to learn about compilers and language design. I've designed the language to be similar to C and Rust.\n\nHeavily inspired by https://github.com/DoctorWkt/acwj\n\n## Features\n\n- [x] Global Variables\n- [x] Functions\n- [x] Arrays\n- [x] Integers (signed and unsigned)\n- [x] Strings\n- [x] Binary Operations\n- [x] Code Generation (GNU Assembly)\n- [x] Print to Console (integers \u0026 ascii characters)\n- [x] If Statements\n- [x] While Statements\n- [x] For Statements\n- [x] Function Parameters\n- [x] Function Arguments\n- [x] Local Variables (Scopes)\n- [x] Function Hoisting\n- [ ] Reading from console\n- [ ] Dynamic Arrays\n- [ ] Structs\n- [ ] Unions\n- [ ] Enums\n- [ ] Break \u0026 Continue\n- [ ] Variable Initialization\n- [ ] Casting\n- [ ] Sizeof\n- [ ] Static\n- [ ] Struct Methods\n- [ ] Struct Traits\n- [ ] LLVM\n\n## How to use\n\n```sh\ncargo run \u003cinput-file\u003e # Compile the crust language to assembly, which will be written to out.s\ncc -no-pie -z noexecstack -o bin out.s # Use the GNU C compiler to compile and link the assembly code to an executable file\n./bin # Execute the produced binary\n```\n\n## Run tests\n\n```sh\n./runtests.sh\n```\n\nIf you're on macOS or another non-Linux system, you can run the tests in a\nLinux Docker container using the provided `Dockerfile`:\n\n```sh\n./docker_runtests.sh\n```\n\n## Examples\n\nSome examples of the language\n\n```rust\nlet c: char;\nlet str: *char;\n\nfn main(): u8 {\n  c= '\\n'; printint(c);\n\n  for (str= \"Hello world\\n\"; *str != 0; str= str + 1) {\n    printchar(*str);\n  }\n  return 0;\n}\n```\n\n```rust\nlet a: u8;\nlet b: u8[25];\n\nfn main(): u32 {\n  b[3]= 12; a= b[3];\n  printint(a);\n  return 0;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmontasser%2Fcrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falmontasser%2Fcrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falmontasser%2Fcrust/lists"}