Simpler and shorter TreeParser, with 50% speed gain.