Pretty-print trees as they are read

For debugging purposes.