This repository contains code for converting regular expressions into deterministic finite automata (DFA) and using the resulting DFA to match patterns. The algorithm employed in this conversion is based on the well-known "Dragon Book" (Compilers Principles, Techniques and Tool by ALSU).
This repository provides a C implementation of the regular expression to the DFA conversion process. It allows you to:
- Convert regular expressions into equivalent DFAs.
- Use the DFA to match patterns against input text efficiently.
- Understand and implement the conversion algorithm specified in the "Dragon Book."
Clone this repository to your local machine.
git clone https://github.com/yourusername/autoregex.git
Next, Navigate to the project directory.
cd autoregex
Then build executable using
make
Finally! For running the executable
./autoregex
OR ( | )
Eg: a|b : either a or b can be matched
STAR ( * )
Eg: a* : a, aa, aaa, etc can be matched
WILD (.)
Eg: a.b : acb, atb, etc can be matched