Reduce lambda allocations in the parser.