The grammar encapsulates a set of rules
(as well as primitive generators (PrimitiveGenerator) and sub-grammars).
The grammar is the main mechanism for modularization and composition.
Grammars can be composed to form more complex grammars.