parser with printed trees