Split the grammar