I have the book and its very hot on the template output - but I'd like to write some passes over the AST that manipulate its structure in-place, changing some node types, creatiing new nodes, and generally swizzling things around. Are there any examples of tree parsers that do this - or is that the wrong approach? James