Combining parse and dfa