thentree function

thentree keeps the full tree representation of the results of parsing. Otherwise, it is identical to then.