https://github.com/adilius/regex-parser
Regular expression parser written in C++ for school project
https://github.com/adilius/regex-parser
cpp
Last synced: 11 months ago
JSON representation
Regular expression parser written in C++ for school project
- Host: GitHub
- URL: https://github.com/adilius/regex-parser
- Owner: Adilius
- License: mit
- Created: 2020-03-24T12:39:49.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-07T23:46:51.000Z (about 6 years ago)
- Last Synced: 2025-02-28T18:25:14.704Z (over 1 year ago)
- Topics: cpp
- Language: C++
- Homepage:
- Size: 171 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Regular Expression Parser
Regular expression parser written in C++ for school project
## Grammar
```
::=
::= concatenation> |
::=
::= | | |
::= "*"
::= "{" any number "}"
::= | |
::= "(" ")"
::= "."
::= any non metacharacter
```
## Build
Either build by running the regex-parser.sln file containing the Visual Studio 2019 project file.
Or build it with a C++ compiler and including all the headers and main.cpp file.
## Run
Run regex-parser from terminal.
`.\regex-parser.exe "Waterloo" input.txt`
First argument is the regex.
Second argument is the file containing the text
## Output


