{"id":17026294,"url":"https://github.com/st3v3nmw/c-compiler","last_synced_at":"2025-06-13T07:36:19.350Z","repository":{"id":106922748,"uuid":"339646853","full_name":"st3v3nmw/c-compiler","owner":"st3v3nmw","description":"A compiler for a subset of the C programming language.","archived":false,"fork":false,"pushed_at":"2023-05-21T14:44:03.000Z","size":512,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T23:18:19.124Z","etag":null,"topics":["c-compiler","compiler","compiler-construction","compiler-designs","compiler-development","compilers"],"latest_commit_sha":null,"homepage":"","language":"C++","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/st3v3nmw.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":"2021-02-17T07:45:18.000Z","updated_at":"2023-05-21T14:44:08.000Z","dependencies_parsed_at":"2024-10-14T07:41:52.142Z","dependency_job_id":null,"html_url":"https://github.com/st3v3nmw/c-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st3v3nmw%2Fc-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st3v3nmw%2Fc-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st3v3nmw%2Fc-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/st3v3nmw%2Fc-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/st3v3nmw","download_url":"https://codeload.github.com/st3v3nmw/c-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245007238,"owners_count":20546143,"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":["c-compiler","compiler","compiler-construction","compiler-designs","compiler-development","compilers"],"created_at":"2024-10-14T07:31:38.552Z","updated_at":"2025-03-22T19:15:52.792Z","avatar_url":"https://github.com/st3v3nmw.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"## C-Language Compiler Implementation\n\nA compiler for a subset of the C programming language (written in C++).\n\nSee the grammar [here](specification.txt).\n\nThis project is an abomination LOL, especially the ICG.\n\n### Project Status\n\n1. - [x] Lexical Analyzer\n2. - [x] Syntax Analyzer\n3. - [ ] Semantic Analyzer\n4. - [x] Intermediate Code Generator (SPIM, ish-done)\n5. - [ ] Machine-Independent Code Optimizer\n6. - [ ] Code Generator\n7. - [ ] Machine-Dependent Code Optimizer\n\n### Project Requirements\n\n1. C++17 (preferably g++)\n\n### Setup\n\n1. Clone the project into your computer.\n2. Launch the project by running the `main.cpp` file. It would be easier to run the project using JetBrain's CLION IDE.\n3. The test files are found in the `tests` folder.\n   - To switch from one testcase to another, you can:\n     1. Use the Makefile i.e. `make o f=tests/submitted.c \u0026\u0026 spim -file out.asm`\n     2. or, when directly running the executable, `./main tests/submitted.c \u0026\u0026 spim -file out.asm`\n     3. or, change the name in the test file specifier on the `main.cpp` file\n\n### Screenshots\n\n1. Scanner output\n   ![Scanner output](assets/scanner.png)\n2. Parser output\n   ![Parser output](assets/parser.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst3v3nmw%2Fc-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fst3v3nmw%2Fc-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fst3v3nmw%2Fc-compiler/lists"}