{"id":17264115,"url":"https://github.com/sudormrfbin/compiler-design-assignment","last_synced_at":"2025-03-26T10:45:13.191Z","repository":{"id":253770803,"uuid":"648865269","full_name":"sudormrfbin/compiler-design-assignment","owner":"sudormrfbin","description":"A compiler for a pseudo code langauge","archived":false,"fork":false,"pushed_at":"2024-08-19T09:47:14.000Z","size":481,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-31T12:14:25.236Z","etag":null,"topics":["bison-flex","compiler","compiler-design","grammar-parser","programming-language-development"],"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/sudormrfbin.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":"2023-06-03T03:16:46.000Z","updated_at":"2024-08-19T09:49:10.000Z","dependencies_parsed_at":"2024-08-19T12:54:01.705Z","dependency_job_id":null,"html_url":"https://github.com/sudormrfbin/compiler-design-assignment","commit_stats":null,"previous_names":["sudormrfbin/compiler-design-assignment"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudormrfbin%2Fcompiler-design-assignment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudormrfbin%2Fcompiler-design-assignment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudormrfbin%2Fcompiler-design-assignment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudormrfbin%2Fcompiler-design-assignment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudormrfbin","download_url":"https://codeload.github.com/sudormrfbin/compiler-design-assignment/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245641317,"owners_count":20648637,"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":["bison-flex","compiler","compiler-design","grammar-parser","programming-language-development"],"created_at":"2024-10-15T07:58:21.951Z","updated_at":"2025-03-26T10:45:13.171Z","avatar_url":"https://github.com/sudormrfbin.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pseudo Lang Compiler\n\nA compiler made using C, [flex] and [bison] for a language that reads like pseudo code.\nAlso comes with compiler options to print intermediate stages of the compiler to inspect it's inner workings.\n\n[flex]: https://github.com/westes/flex\n[bison]: https://www.gnu.org/software/bison/\n\n## Dependencies\n\n1. [`datatype99`]: Implementation of sum types in pure C to be used to represent and manipulate\nthe AST concisely.\n\nThe header files are duplicated under the `include/` directory.\n\n[`datatype99`]: https://github.com/Hirrolot/datatype99\n[`cvector`]: https://github.com/eteran/c-vector/\n\n## Building\n\nInstall `make`, and then build the program with `make build`. The compiler binary will be built, called `pseudoc`\n\n## Usage\n\n```bash\n$ ./pseudoc -h\nUsage: psuedoc [options] filename\n\n    -h, --help    show this help message and exit\n\nDebug options\n    -t, --tokens  print token stream\n    -a, --ast     print syntax tree\n    -s, --symtab  print symbol table\n    -i, --ir      print 3 address intermediate code\n\n```\n\nSome test files are provided in the `tests` directory.\n\n## Syntax Showcase\n\n```\nname = \"John\"\nadd_last_name = true\n\nif add_last_name then\n\tname = name + \" Doe\"\nelse\n\tdisplay \"not adding last name\"\nendif\n\ndisplay name\n\nfor i = 1 to 2 * 2 do\n\tdisplay i\nendfor\n\nmax = 5\nstring = \"a\"\n\nwhile max \u003e= 0 do\n\tstring = string + \"a\"\n\tdisplay string\n\tmax = max - 1\nendwhile\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudormrfbin%2Fcompiler-design-assignment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudormrfbin%2Fcompiler-design-assignment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudormrfbin%2Fcompiler-design-assignment/lists"}