Unparser

In computing, an unparser is a system that constructs a set of characters or image components from a given parse tree.
An unparser is in effect the reverse of a traditional parser which takes a string of characters and produces a parse tree. Unparsing generally involves the application of a specific set of rules to the parse tree as a "tree walk" takes place.