{"id":17485628,"url":"https://github.com/ghostofgoes/cgoes-cminus-compiler","last_synced_at":"2025-04-22T15:25:34.268Z","repository":{"id":84195590,"uuid":"41386600","full_name":"GhostofGoes/cgoes-cminus-compiler","owner":"GhostofGoes","description":"My code and notes for Compilers class.","archived":false,"fork":false,"pushed_at":"2020-12-14T06:26:27.000Z","size":5797,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-19T05:22:22.482Z","etag":null,"topics":["bison","bison-example","bison-grammar","compiler","cplusplus","cpp","flex"],"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/GhostofGoes.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":"2015-08-25T20:35:38.000Z","updated_at":"2023-01-31T01:12:36.000Z","dependencies_parsed_at":"2023-05-23T22:00:20.355Z","dependency_job_id":null,"html_url":"https://github.com/GhostofGoes/cgoes-cminus-compiler","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostofGoes%2Fcgoes-cminus-compiler","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostofGoes%2Fcgoes-cminus-compiler/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostofGoes%2Fcgoes-cminus-compiler/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GhostofGoes%2Fcgoes-cminus-compiler/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GhostofGoes","download_url":"https://codeload.github.com/GhostofGoes/cgoes-cminus-compiler/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250265984,"owners_count":21402208,"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","bison-example","bison-grammar","compiler","cplusplus","cpp","flex"],"created_at":"2024-10-19T02:08:20.646Z","updated_at":"2025-04-22T15:25:34.260Z","avatar_url":"https://github.com/GhostofGoes.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cgoes Cminus Compiler (CCC)\nA compiler for Robert Heckendorn's C- (cminus) language. \n\n## A note on plagarism\nIf you are currently in the class: *DO NOT USE THIS CODE IN YOUR PROJECT*. \nMIT License does *not* enable its use in a school assignment. \nPlagiarizing will get you suspended or expelled, I've seen it happen before.\nYou're welcome to read it and fill gaps in understanding in Flex/Bison, such as function calls and syntax, *not* the algorithms and logical structure of the program. \n\n\n# Using the CCC\nIt is recommended you run this on a distribution of Linux.\n\n## Usage\n```\n    ./c- \u003cinputfile\u003e [flags]\n    tm \u003cobjectfile\u003e.tm\n```\n\n## Flags\n```\n-d      Enable yydebug for flex/bison debugging\n-t      Testing flag, for general debugging\n-p      Print the syntax tree generated by bison\n-P      Print the annotated syntax tree (annotated with types, etc)\n-o [ \u003cfilename\u003e | - ]  Generate TM instructions. \n(Default: \"fred.tm\". \u003cfilename\u003e: outputs to the filename. '-': stdout)\n```\n\n## Environment requirements\n    Bison 3.0 or higher (Hard requirement, can confirm 2.5 freaks out)\n    Flex 2.5.39 or higher (I think flex 2.5.37 will work as well)\n    gcc 4.9 or higher (Hard requirement, C++11)\n    Make 4.0 (Most any version will work fine)\n\n## Quickstart guide\n    git clone \u003crepo\u003e\n    cd \u003crepo\u003e/src\n    make tm # Makes the Tiny Machine emulator\n    make    # Makes CCC\n    ./c- 6tests/scope35.c- -P -o scope35.tm\n    tm scope35.c-\n    g\n\n# License\n    Code and documentation copyright 2015-2018 Christopher Goes.\n    All code and documentation released under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostofgoes%2Fcgoes-cminus-compiler","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostofgoes%2Fcgoes-cminus-compiler","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostofgoes%2Fcgoes-cminus-compiler/lists"}