Working parser; tree printer