Pre-calculating the big automata for all tokens in the grammar only once.