New class `GrammarBuilder`.

A builder class to simplify the construction of a grammar.