Adding debug printing to parse tree transformations