parse indented file into trees