automata simple program for converting nfa to dfa, nfa to regex, nfa to regular grammar input file should be like samples