A Python Implementation to convert Regular Expression directly to DFA
python3
graphviz
,libgraphviz
in case of Ubuntujava
andjavac
(Install from any package likeopenjdk
antlr4
, follow the exact steps from their website and addexport
s to the shell configuration file(Usually~/.bashrc
)
- RegExs should be defined over alphabet
{a,b}
- Epsilon is coded as
e
- Whitespaces are skipeed
- Klnee Closure Operator (
*
) - Concatenation
- Alternation Operator (
|
) - Grouping by means of Parenthesis
python3 -m pip install -r requirements.txt
python3 main.py