{"id":19809440,"url":"https://github.com/adilius/regex-parser","last_synced_at":"2025-08-02T08:07:33.082Z","repository":{"id":126142273,"uuid":"249704681","full_name":"Adilius/regex-parser","owner":"Adilius","description":"Regular expression parser written in C++ for school project","archived":false,"fork":false,"pushed_at":"2020-05-07T23:46:51.000Z","size":175,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-28T18:25:14.704Z","etag":null,"topics":["cpp"],"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/Adilius.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":"2020-03-24T12:39:49.000Z","updated_at":"2024-03-16T10:12:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"eb04c645-518b-40e0-baf0-218f82c2f1d1","html_url":"https://github.com/Adilius/regex-parser","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Adilius/regex-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adilius%2Fregex-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adilius%2Fregex-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adilius%2Fregex-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adilius%2Fregex-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Adilius","download_url":"https://codeload.github.com/Adilius/regex-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Adilius%2Fregex-parser/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268351343,"owners_count":24236389,"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-08-02T02:00:12.353Z","response_time":74,"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":["cpp"],"created_at":"2024-11-12T09:17:02.438Z","updated_at":"2025-08-02T08:07:33.059Z","avatar_url":"https://github.com/Adilius.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Regular Expression Parser\nRegular expression parser written in C++ for school project\n\n## Grammar\n```\n\u003cRE\u003e ::= \u003csimple-RE\u003e\n\u003csimple-RE\u003e\t::=  concatenation\u003e | \u003cbasic-RE\u003e \n\u003cconcatenation\u003e ::= \u003cbasic-RE\u003e \u003csimple-RE\u003e \n\u003cbasic-RE\u003e\t::= \u003cstar\u003e | \u003cplus\u003e | \u003ccount\u003e | \u003celementary-RE\u003e\n\u003cstar\u003e\t::=\t\u003celementary-RE\u003e \"*\"\n\u003ccount\u003e ::= \u003celementary-Re\u003e  \"{\" any number \"}\"\n\u003celementary-RE\u003e\t::=\t \u003ccharacter\u003e | \u003cgroup\u003e | \u003cany\u003e \n\u003cgroup\u003e\t::=\t\"(\" \u003cRE\u003e \")\"\n\u003cany\u003e\t::=\t\".\"\n\u003ccharacter\u003e\t::= any non metacharacter\n ```\n \n## Build\n\nEither build by running the regex-parser.sln file containing the Visual Studio 2019 project file.\nOr build it with a C++ compiler and including all the headers and main.cpp file.\n\n## Run\n\nRun regex-parser from terminal. \n`.\\regex-parser.exe \"Waterloo\" input.txt`\nFirst argument is the regex.\nSecond argument is the file containing the text\n\n\n\n## Output\n![output1](https://user-images.githubusercontent.com/43440295/80920120-064f4a00-8d6e-11ea-8e64-ca49e4631904.PNG)\n![output2](https://user-images.githubusercontent.com/43440295/80920171-5a5a2e80-8d6e-11ea-8738-aee6b5827a95.PNG)\n![output3](https://user-images.githubusercontent.com/43440295/80920296-20d5f300-8d6f-11ea-8068-083c6bf3264d.PNG)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadilius%2Fregex-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadilius%2Fregex-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadilius%2Fregex-parser/lists"}