Builds the partial derivative automaton of a regex, which has at most one state more than the
letter occurrences of the regex and no epsilon moves. State 0 is the start term of the root, and the
other states follow in breadth-first order over the alphabet of the regex, so a checker that
applies the same rules numbers them the same way.
Builds the partial derivative automaton of a regex, which has at most one state more than the letter occurrences of the regex and no epsilon moves. State 0 is the start term of the root, and the other states follow in breadth-first order over the alphabet of the regex, so a checker that applies the same rules numbers them the same way.