Fix the operator precedence of the parser with an elegant technique using inherited attributes.