Add precedence to the grammar.