Define the grammar