{"id":16330677,"url":"https://github.com/swarnimwalavalkar/a-compiler","last_synced_at":"2026-04-25T21:32:38.002Z","repository":{"id":158386762,"uuid":"345359445","full_name":"SwarnimWalavalkar/a-compiler","owner":"SwarnimWalavalkar","description":"An extraordinarily simple BSAIC to C compiler","archived":false,"fork":false,"pushed_at":"2021-03-07T14:04:23.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T14:09:59.535Z","etag":null,"topics":["c","compiler","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/SwarnimWalavalkar.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":"2021-03-07T13:53:34.000Z","updated_at":"2023-01-19T19:29:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"47ea9a8f-9fba-44f4-9aa8-cd7d5fb8e5be","html_url":"https://github.com/SwarnimWalavalkar/a-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SwarnimWalavalkar/a-compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwarnimWalavalkar%2Fa-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwarnimWalavalkar%2Fa-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwarnimWalavalkar%2Fa-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwarnimWalavalkar%2Fa-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SwarnimWalavalkar","download_url":"https://codeload.github.com/SwarnimWalavalkar/a-compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SwarnimWalavalkar%2Fa-compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32278249,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"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","python"],"created_at":"2024-10-10T23:24:13.153Z","updated_at":"2026-04-25T21:32:37.987Z","avatar_url":"https://github.com/SwarnimWalavalkar.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A Compiler\n\nAn extraordinarily simple implementation of a BSAIC-like-dialect language to C compiler to learn the fundamentals of Compiler Design.\n\nIt supports:\n\n-   Numerical variables\n-   Basic arithmetic\n-   If statements\n-   While loops\n-   Print text and numbers\n-   Input numbers\n-   Labels and goto\n-   Comments\n\n## Dependencies\n\n-   Python \u003e= 3\n-   GCC \u003e= 9\n\n## Build an example program with build.sh\n\nCompile:\n\n```bash\nbash build.sh ./examples/hello.a\n```\n\nRun:\n\n```bash\n./build/hello.exe\n```\n\nExpected Output:\n\n```bash\nHello, World!\n```\n\n## Manually compile an example program\n\nCompile into C:\n\n```bash\n python3 a.py ./examples/hello.a\n```\n\nCompile C code with your preffered C compiler:\n\n```bash\ngcc out.c\n```\n\nRun the outputted binary:\n\n```bash\n./a.exe\n```\n\nExpected Output:\n\n```bash\nHello, World!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarnimwalavalkar%2Fa-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswarnimwalavalkar%2Fa-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswarnimwalavalkar%2Fa-compiler/lists"}