Add interface to read in AST output, and tool for round-trips.