{"id":20129999,"url":"https://github.com/aliiimaher/compiler","last_synced_at":"2025-09-21T05:31:53.439Z","repository":{"id":138735139,"uuid":"570452875","full_name":"aliiimaher/Compiler","owner":"aliiimaher","description":"Design a tiny compiler with Lex and Yacc.","archived":false,"fork":false,"pushed_at":"2023-01-08T22:58:53.000Z","size":1335,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T21:35:42.513Z","etag":null,"topics":["bison-flex","compiler","yacc-lex"],"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/aliiimaher.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":"2022-11-25T08:22:16.000Z","updated_at":"2024-02-02T13:53:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"6645d32a-d3f7-485c-a712-813215e9d58e","html_url":"https://github.com/aliiimaher/Compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aliiimaher/Compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FCompiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FCompiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FCompiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FCompiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliiimaher","download_url":"https://codeload.github.com/aliiimaher/Compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliiimaher%2FCompiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276195627,"owners_count":25601152,"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-09-21T02:00:07.055Z","response_time":72,"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":["bison-flex","compiler","yacc-lex"],"created_at":"2024-11-13T20:37:02.711Z","updated_at":"2025-09-21T05:31:52.982Z","avatar_url":"https://github.com/aliiimaher.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Compiler\nDesign a tiny compiler with **Lex** and **Yacc**.\n\n\n## About\nThe project is supposed to read a calculation expression and produce a three-address code in C Language.\n\nThe project has been divided into three phases.\n```mermaid\nflowchart TD;\n    A[Compiler]--Phase 1--\u003eB[Lexical Analysis];\n    A[Compiler]--Phase 2--\u003eC[Syntax Analysis];\n    A[Compiler]--Phase 3--\u003eD[Intermediate Code Generation];\n```\n\n## Running\n### Phase 1\n```\n  flex  lex.l\n  gcc   lex.yy.c\n        a.exe\n```        \n### Phase 2\n```\n  bison -d -y   yacc.y\n  gcc           y.tab.c\n                a.exe\n``` \n### Phase 3 (Project)\n```\n  bison -d -y       yacc.y\n  flex              lex.l\n  gcc   lex.yy.c    y.tab.c\n                    a.exe\n``` \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliiimaher%2Fcompiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliiimaher%2Fcompiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliiimaher%2Fcompiler/lists"}