{"id":23382157,"url":"https://github.com/tuke307/cau-simplified-c-compiler","last_synced_at":"2025-04-08T08:44:50.467Z","repository":{"id":244752819,"uuid":"807376804","full_name":"tuke307/cau-simplified-c-compiler","owner":"tuke307","description":null,"archived":false,"fork":false,"pushed_at":"2024-06-07T04:31:48.000Z","size":183,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T05:41:19.138Z","etag":null,"topics":["c","compiler"],"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/tuke307.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-05-29T01:42:57.000Z","updated_at":"2024-10-15T12:53:38.000Z","dependencies_parsed_at":"2024-06-17T08:05:28.868Z","dependency_job_id":"a401d1bf-56d7-447a-9c47-0f5a2cba9fbc","html_url":"https://github.com/tuke307/cau-simplified-c-compiler","commit_stats":null,"previous_names":["tuke307/simplified-c-compiler","tuke307/cau-simplified-c-compiler"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuke307%2Fcau-simplified-c-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuke307%2Fcau-simplified-c-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuke307%2Fcau-simplified-c-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuke307%2Fcau-simplified-c-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuke307","download_url":"https://codeload.github.com/tuke307/cau-simplified-c-compiler/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247808108,"owners_count":20999655,"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"],"created_at":"2024-12-21T21:17:48.027Z","updated_at":"2025-04-08T08:44:50.444Z","avatar_url":"https://github.com/tuke307.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# simplified-c-compiler\n\n## requirements\n* python 3.7\n\n## usage\n```bash\npython src/syntax_analyzer.py \u003ctoken_input_file\u003e\n```\n\nInput: \n* A sequence of tokens (terminals) written in the input file (see the [example inputs](#example-input) section for more details)\n\nOutput\n* accept: parse tree for the input sequence\n* reject: error report\n\n\n## example input\n\n### [basic variable declaration](input/basic_variable_declaration.txt) \n```c\nint x;\n```\n\n### [variable assignment](input/variable_assignment.txt)\nequivalent code;\n```c\nint x = 10;\n```\n\n### [function declaration no args](input/function_declaration_no_args.txt)\n```c\nint main() {\n    return 0;\n}\n```\n\n### [function declaration args and statements](input/function_declaration_statement.txt)\n```c\nint func(int a, int b, int c) {\n    int x;\n    return 0;\n}\n```\n\n### [if statement](input/if_statement.txt)\n```c\nint main() {\n    if (true == true) {\n        x = 10;\n    }\n    return x;\n}\n```\n\n### [if else statement](input/if_else_statement.txt)\n```c\nint main() {\n    if (true == true) {\n        x = 10;\n    } else {\n        x = 20;\n    }\n    return x;\n}\n```\n\n### [while loop assignment](input/while_loop_assignment.txt)\n```c\nint main() {\n    while (true) {\n        x = 10;    \n    }\n    return x;\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuke307%2Fcau-simplified-c-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuke307%2Fcau-simplified-c-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuke307%2Fcau-simplified-c-compiler/lists"}