Draft of grammar to DFA