Function for printing parsing trees in readable way.