{"id":16986954,"url":"https://github.com/amrdeveloper/done","last_synced_at":"2025-07-29T01:06:33.678Z","repository":{"id":104908381,"uuid":"279064651","full_name":"AmrDeveloper/Done","owner":"AmrDeveloper","description":"Compiler to generate C Code and executable with many features and syntax sugger","archived":false,"fork":false,"pushed_at":"2022-01-15T10:08:55.000Z","size":17163,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-18T17:39:08.511Z","etag":null,"topics":["c-code-generator","codegenerator","compiler","cpp","lexer","parser","transpiler"],"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/AmrDeveloper.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,"zenodo":null}},"created_at":"2020-07-12T12:57:08.000Z","updated_at":"2024-10-18T15:18:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"5924cb4c-8556-4aca-bb40-76073b6a36bb","html_url":"https://github.com/AmrDeveloper/Done","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AmrDeveloper/Done","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FDone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FDone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FDone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FDone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AmrDeveloper","download_url":"https://codeload.github.com/AmrDeveloper/Done/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AmrDeveloper%2FDone/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267613084,"owners_count":24115580,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-code-generator","codegenerator","compiler","cpp","lexer","parser","transpiler"],"created_at":"2024-10-14T02:47:28.532Z","updated_at":"2025-07-29T01:06:33.667Z","avatar_url":"https://github.com/AmrDeveloper.png","language":"C++","readme":"# Done\nToy Compiler Project that generate C code\n\nDone support most of C Features like struct, enum, pointer, address and can use any C library\nand also have some new features from other languages like single line function and Elvis operator \nand can separate number with _ for example 1_000_000\n\nCode Example\n\nUtils.done\n```\nfun isOdd(x : int) : bool -\u003e return x%2 == 0;\nfun isEvent(x : int) : bool -\u003e return x%2 != 0;\n```\n\nMain.done\n```\n// Import File written in Done Language\nimport {\n   \"Utils\"\n}\n\n// Include C Standard Libraries\ninclude {\n   \"stdio\"\n}\n\nfun main() : int {\n    printf(\"Enter your number : \");\n    var number : int;\n    scanf(\"%d\", \u0026number);\n    if(isEvent(number)) {\n       printf(\"Even Number\");\n    }else{\n       printf(\"Odd Number\");\n    }\n    return 0;\n}\n```\n\nTo compile this code you should write\n```\ndonec Main.done -x\n```\n\nNow you will see main.c and main.exe if you using Windows OS,\n\nTo run the executable\n```\n./main\n```\n\n- Compiler Options\nTo the compiler name gcc or clang \n```\n-c gcc\n```\n\nTo set the optimization level\n```\n-o O3\n```\n\nTo set the C generated file name\n```\n-g main.c\n```\n\nTo set the executable file name\n```\n-e main\n```\n\nTo enable generating executable\n```\n-x\n```\n\nTo generate and run executable\n```\n-r\n```\n\nTo print the donec version\n```\n-v\n```\n\nTo Print the help menu\n```\n-h\n```\n \nVideo Example : [Youtube](https://www.youtube.com/watch?v=SJO56RAF2UY)\n\nLicense\n\n```\nMIT License\n\nCopyright (c) 2020 Amr Hesham\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Fdone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famrdeveloper%2Fdone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famrdeveloper%2Fdone/lists"}