PrettyPrinter is able to generate code for simple example tree.