The following script makeDFA.sh will take input a regular expression and output a DFA in form of a PNG.
-
'#' , '.' and '$' are special symbols (without quotes) and should not be used in the expression.
-
Order of Precedence of the operators
( ) ------> HIGHEST
*
/ , . -----> LOWEST( . means concatenation )
-
Ties are broken by first come first serve i.e. operation on the left has more precedance than on the right
-
States will not show transition for input symbol which leads to a trap state. This is done to reduce clutter.
-
Output is given in form of PNG file named 'DFA.png' (without quotes) in the current directory.
-
For bugs/contribution go to www.github.com/scipsycho or mail to dsingh1664@outlook.com
- C++ 11 or higher compiler
- Graphviz 'dot' installed on the system
- Run
make clean
- Run
make
- Minimization of DFA
- Incorporation of '$' as epsilon in regex.