Optimize for left-recursive parser.