{"id":20556562,"url":"https://github.com/billgewrgoulas/custom-compiler","last_synced_at":"2026-04-28T17:34:18.674Z","repository":{"id":296261473,"uuid":"346430007","full_name":"billgewrgoulas/Custom-Compiler","owner":"billgewrgoulas","description":"Compiler for a small programming language, built for the Compilers course at UOI.","archived":false,"fork":false,"pushed_at":"2023-03-06T10:51:19.000Z","size":800,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-29T19:47:48.997Z","etag":null,"topics":["assembler","code-generation","compiler","interpreter","lexical-analysis","programming-language","symbol-table","syntax-analysis","syntax-tree"],"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/billgewrgoulas.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,"zenodo":null}},"created_at":"2021-03-10T17:01:01.000Z","updated_at":"2025-04-08T17:27:51.000Z","dependencies_parsed_at":"2025-05-29T19:47:52.490Z","dependency_job_id":"c6f66978-1ce7-47d6-ab2b-c0c9a28cbb64","html_url":"https://github.com/billgewrgoulas/Custom-Compiler","commit_stats":null,"previous_names":["billgewrgoulas/custom-compiler"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/billgewrgoulas/Custom-Compiler","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billgewrgoulas%2FCustom-Compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billgewrgoulas%2FCustom-Compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billgewrgoulas%2FCustom-Compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billgewrgoulas%2FCustom-Compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/billgewrgoulas","download_url":"https://codeload.github.com/billgewrgoulas/Custom-Compiler/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/billgewrgoulas%2FCustom-Compiler/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32392299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T14:34:11.604Z","status":"ssl_error","status_checked_at":"2026-04-28T14:32:37.009Z","response_time":56,"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":["assembler","code-generation","compiler","interpreter","lexical-analysis","programming-language","symbol-table","syntax-analysis","syntax-tree"],"created_at":"2024-11-16T03:29:16.310Z","updated_at":"2026-04-28T17:34:18.669Z","avatar_url":"https://github.com/billgewrgoulas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Programming language compiler.\n\nCimple is a small programming language that borrows elements from other languages like C and pascal. While it doesnt support some of the basic features and tools that most languages do ,it provides a wide variety of structures and elements that have very intresting implementation patterns. Cimple supports functions and procedures , \nparameter passing by value or by reference, complex conditional loops , recursive calls and even nesting in function declaration and many more.\n\nTask: Given a source program written in Cimple , generate the final code written in assembly.\n\nThe phaces of the implementation are the following:  \n* Lexical Analysis  \n* Syntax Analysis  \n* Intermidiate Code Generation  \n* Symbol Table / Meaning Analysis  \n* Final Code Generation  \n\n## Grammar of Cimple (follows the LL(1) principle):  \n\nprogram : program ID block .  \nblock : declarations subprograms statements  \ndeclarations : ( declare varlist ; )∗  \nvarlist : ID ( , ID )∗ | ε  \nsubprograms : ( subprogram )∗  \nsubprogram : function ID ( formalparlist ) block | procedure ID ( formalparlist ) block  \nformalparlist : formalparitem ( , formalparitem )∗ | ε  \nformalparitem : in ID | inout ID  \nstatements : statement ; | { statement ( ; statement )∗ }  \nstatement : assignStat | ifStat | whileStat | switchcaseStat | forcaseStat | incaseStat | callStat | returnStat | inputStat | printStat | ε  \nassignStat : ID := expression  \nifStat : if ( condition ) statements elsepart  \nelsepart : else statements | ε  \n\nwhileStat : while ( condition ) statements  \nswitchcaseStat: switchcase ( case ( condition ) statements )∗ default statements  \nforcaseStat : forcase ( case ( condition ) statements )∗ default statements  \nincaseStat : incase ( case ( condition ) statements )∗  \nreturnStat : return( expression )  \ncallStat : call ID( actualparlist )  \nprintStat : print( expression )  \ninputStat : input( ID )  \nactualparlist : actualparitem ( , actualparitem )∗ | ε  \nactualparitem : in expression | inout ID  \ncondition : boolterm ( or boolterm )∗  \n\nboolterm : boolfactor ( and boolfactor )∗  \nboolfactor : not [ condition ] | [ condition ] | expression REL_OP expression  \nexpression : optionalSign term ( ADD_OP term )∗  \nterm : factor ( MUL_OP factor )∗  \nfactor : INTEGER | ( expression ) | ID idtail  \nidtail : ( actualparlist ) | ε  \noptionalSign : ADD_OP | ε  \nREL_OP : = | \u003c= | \u003e= | \u003e | \u003c | \u003c\u003e ; ADD_OP : + |   \nMUL_OP : * | /  \nINTEGER : [0-9]+  \nID : [a-zA-Z][a-zA-Z0-9]*  \n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillgewrgoulas%2Fcustom-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbillgewrgoulas%2Fcustom-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbillgewrgoulas%2Fcustom-compiler/lists"}