{"id":21619916,"url":"https://github.com/ayeshaashfaq12/c-compiler","last_synced_at":"2025-08-03T14:08:57.966Z","repository":{"id":260359180,"uuid":"876550281","full_name":"AyeshaAshfaq12/C-Compiler","owner":"AyeshaAshfaq12","description":"This project is a C++ compiler designed to provide all standard compiler features, with the parsing phase already completed and further stages in development.","archived":false,"fork":false,"pushed_at":"2024-11-11T13:18:32.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T18:22:59.618Z","etag":null,"topics":["compiler-construction","compiler-design","cpp","cpp-programming","lexical","lexical-analysis","parser","parsing","software-development","syntax-analysis"],"latest_commit_sha":null,"homepage":"","language":"C++","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/AyeshaAshfaq12.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-10-22T06:53:32.000Z","updated_at":"2024-11-11T13:18:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"174d2010-83c6-4fcb-98ca-7ef7a07c7f43","html_url":"https://github.com/AyeshaAshfaq12/C-Compiler","commit_stats":null,"previous_names":["ayeshaashfaq12/c-compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AyeshaAshfaq12/C-Compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaAshfaq12%2FC-Compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaAshfaq12%2FC-Compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaAshfaq12%2FC-Compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaAshfaq12%2FC-Compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AyeshaAshfaq12","download_url":"https://codeload.github.com/AyeshaAshfaq12/C-Compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AyeshaAshfaq12%2FC-Compiler/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268554909,"owners_count":24269062,"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-03T02:00:12.545Z","response_time":2577,"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-construction","compiler-design","cpp","cpp-programming","lexical","lexical-analysis","parser","parsing","software-development","syntax-analysis"],"created_at":"2024-11-24T23:10:19.733Z","updated_at":"2025-08-03T14:08:57.744Z","avatar_url":"https://github.com/AyeshaAshfaq12.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C++ Compiler Project\n\nThis project aims to develop a fully functional compiler for the C++ programming language. Designed with comprehensive compiler features, this compiler is a work in progress, with the parsing phase already completed and tested.\n\n## Project Status\n\n**Current Progress:** Parsing stage has been completed and tested.  \n**Upcoming Development Stages:** Semantic analysis, code generation, and optimization phases.\n\n---\n\n## Features\n\nThe compiler is designed to support all essential features expected in a modern compiler, including:\n\n1. **Lexical Analysis**  \n   - Efficiently tokenizes input C++ code into meaningful lexemes.\n2. **Parsing**  \n   - Completed and fully functional, the parsing phase verifies syntax and builds an Abstract Syntax Tree (AST) for further processing.\n3. **Semantic Analysis** *(Planned)*  \n   - Will analyze code semantics to ensure type safety, correct variable use, and overall logical correctness.\n4. **Intermediate Code Generation** *(Planned)*  \n   - Will convert parsed and validated code into an intermediate representation.\n5. **Optimization** *(Planned)*  \n   - Aims to optimize intermediate code for better runtime efficiency.\n6. **Code Generation** *(Planned)*  \n   - Will translate intermediate representation into executable machine code.\n7. **Error Handling** *(Planned)*  \n   - Robust error handling throughout compilation stages to ensure useful feedback for debugging.\n\n---\n\n## Project Structure\n\n\n```makefile\n├── parser.cpp           # Parses code into AST (completed)\n└── README.md            # Project documentation\n```\n\n## Installation\n\nTo set up and run the compiler locally, please follow these steps:\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/AyeshaAshfaq12/C-Compiler.git\ncd C-Compiler\n```\n\n2. Compile the project:\n```bash\nmake\n```\n\n3. Run the executable on your code file:\n```bash\n./compiler your_code.cpp\n```\n\n## Usage\n\n- The compiler currently supports the parsing of C++ code and provides output in the form of an Abstract Syntax Tree.\n- As development progresses, additional functionalities like code generation and optimization will be integrated.\n\n  \n## Example\nInclude an example to demonstrate the compiler's current parsing capabilities.\n\n#### Sample C++ Code Input:\n```cpp\nint main() {\n    int a = 5;\n    int b = 10;\n    return a + b;\n}\n```\n\n  \n## License\nThis project is licensed under the MIT License.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshaashfaq12%2Fc-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fayeshaashfaq12%2Fc-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fayeshaashfaq12%2Fc-compiler/lists"}