Handle operator precedence and associativity.