The input for the NFA to DFA conversion program follows a specific format. Each transition is represented in one of the following two formats:
STATE | SYMBOL STATE: This format indicates a transition fromSTATEtoSTATEwhen the input symbol isSYMBOL.STATE | SYMBOL1 STATE1, SYMBOL2 STATE2: This format represents a transition fromSTATEtoSTATE1when the input symbol isSYMBOL1, and fromSTATEtoSTATE2when the input symbol isSYMBOL2. Example included in input.txt
runghc main.hs <file_name> <optional words>
To minimize it as well after converting to DFA, add "-m" after the file_name. Example
runghc main.hs input.txt a ab aaa
runghc main.hs input_words.txt
Words in the arguments are added to the list of words present in the input file.