func parses, better pretty-print of tree