{"id":20048477,"url":"https://github.com/aggstam/flex-c-declarations","last_synced_at":"2025-03-02T08:21:16.174Z","repository":{"id":155101741,"uuid":"592708056","full_name":"aggstam/flex-c-declarations","owner":"aggstam","description":"Simple Flex program producing the corresponding C code to display all the declarions of another C code file.","archived":false,"fork":false,"pushed_at":"2023-05-16T13:34:57.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-12T20:33:34.404Z","etag":null,"topics":["c","flex","language-processing"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aggstam.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":"2023-01-24T11:05:57.000Z","updated_at":"2023-01-24T11:12:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"6579c4ba-286e-498d-bb6c-9b65a9ea246f","html_url":"https://github.com/aggstam/flex-c-declarations","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/aggstam%2Fflex-c-declarations","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-c-declarations/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-c-declarations/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-c-declarations/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aggstam","download_url":"https://codeload.github.com/aggstam/flex-c-declarations/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241478045,"owners_count":19969212,"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","flex","language-processing"],"created_at":"2024-11-13T11:44:13.945Z","updated_at":"2025-03-02T08:21:16.161Z","avatar_url":"https://github.com/aggstam.png","language":"C","readme":"# flex-C-declarations\n\nSimple Flex program producing the corresponding C code to display all the declarions of another C code file.\n\u003cbr\u003e\nThese include:\n- System libraries\n- User libraries\n- Forward declarations\n- Function definitions\n\nCompilation and tests execution is streamline via a Makefile.\n\u003cbr\u003e\nTwo test C code files have been provided to play with.\n\n## Usage\n```\n% make\n```\nMakefile can be configured to use a different test case set and/or files.\n\n## Execution example\n```\n❯ make\nflex -o flex_c_declarations.c flex_c_declarations.l\ngcc flex_c_declarations.c -o flex_c_declarations -lfl\n./flex_c_declarations test_file_0.c\nSystem Library: #include \u003cstdio.h\u003e\nUser Library: #include \"genlib.h\"\nUser Library: #include \"simpio.h\"\nMacro definition: #define N 10\nForward Function Declaration: bool IsLeapYear(int year);\nForward Function Declaration: int MonthDays(int month, int year);\nForward Function Declaration: bool valide_date(int dd, int mm, int yy);\nForward Function Declaration: long Read_and_Calculate(int curyear);\nFunction Definition: bool IsLeapYear(int year)\nFunction Definition: int MonthDays(int month, int year)\nFunction Definition: bool valide_date(int dd, int mm, int yy)\nFunction Definition: long Read_and_Calculate(int curyear)\n3 Libraries are included in file.\nThere are 4 fw function declarations and 4 fun defs.\n./flex_c_declarations test_file_1.c\nSystem Library: #include \u003cstdio.h\u003e\nSystem Library: #include \u003cstring.h\u003e\nSystem Library: #include \u003cconio.h\u003e\nForward Function Declaration: void read_data(char user_string[], int *L, int *X, int *Y);\nForward Function Declaration: void leftjust(char str[], int L, int X, int Y);\nForward Function Declaration: void rightjust(char str[], int L, int X, int Y);\nForward Function Declaration: void centerjust(char str[], int L, int X, int Y);\nFunction Definition: void read_data(char str[], int *L, int *X, int *Y)\nFunction Definition: void leftjust(char str[], int L, int X, int Y)\nFunction Definition: void rightjust(char str[], int L, int X, int Y)\nFunction Definition: void centerjust(char str[], int L, int X, int Y)\n3 Libraries are included in file.\nThere are 4 fw function declarations and 4 fun defs.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-c-declarations","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faggstam%2Fflex-c-declarations","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-c-declarations/lists"}