Refactoring grammar for left-associativity.