Expand the grammar.