{"id":20048475,"url":"https://github.com/aggstam/flex-robot-language","last_synced_at":"2025-03-02T08:21:01.674Z","repository":{"id":155101746,"uuid":"592723567","full_name":"aggstam/flex-robot-language","owner":"aggstam","description":"Simple Flex program producing the corresponding C code to validate the syntax of provided RobotLanguage (.rl) code file.","archived":false,"fork":false,"pushed_at":"2023-05-16T13:35:57.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-12T20:33:33.645Z","etag":null,"topics":["c","flex","language-processing"],"latest_commit_sha":null,"homepage":"","language":"Lex","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:51:30.000Z","updated_at":"2023-01-24T11:52:36.000Z","dependencies_parsed_at":"2024-06-01T22:21:24.869Z","dependency_job_id":null,"html_url":"https://github.com/aggstam/flex-robot-language","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-robot-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-robot-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-robot-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aggstam%2Fflex-robot-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aggstam","download_url":"https://codeload.github.com/aggstam/flex-robot-language/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241477933,"owners_count":19969194,"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.850Z","updated_at":"2025-03-02T08:21:01.662Z","avatar_url":"https://github.com/aggstam.png","language":"Lex","readme":"# flex_robot_language\n\nSimple Flex program producing the corresponding C code to validate the syntax of provided RobotLanguage (.rl) code file.\n\u003cbr\u003e\nRobotLanguange LL grammar:\n- Robot ::= name “{“ Rules “}”\n- Rules ::= “init” R\n- R ::= Rule R | ε\n- Rule ::= sensor Op T_NUM Action | “halt”\n- Action ::= “move” T_NUM | “turn” “left” | “turn” “right\n\nFIRST and FOLLOW sets of grammar:\n- FIRST(Robot)={“names”}, FOLLOW(Robot)={EOF}\n- FIRST(Rules)={“init”}, FOLLOW(Rules)={“}”}\n- FIRST(R)={sensor, “halt”, ε}, FOLLOW(R)={“}”}\n- FIRST(Rule)={sensor, “halt”}, FOLLOW(Rule)={sensor, “halt”, “}”}\n- FIRST(Action)={“move”, “turn”}, FOLLOW(Action)={sensor, “halt”, “}”}\n\nCompilation and tests execution is streamline via a Makefile.\n\u003cbr\u003e\nThree valid and one invalid test RobotLanguage 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_robot_language.c flex_robot_language.l\ngcc flex_robot_language.c -o flex_robot_language -lfl\n./flex_robot_language test_robot_0.rl\n File syntax is correct!\n./flex_robot_language test_robot_1.rl\n File syntax is correct!\n./flex_robot_language test_robot_2.rl\n File syntax is correct!\n./flex_robot_language test_robot_error.rl\n Syntax Error reading . at line 3 of input.\nmake: [Makefile:15: all] Error 255 (ignored)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-robot-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faggstam%2Fflex-robot-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faggstam%2Fflex-robot-language/lists"}