move AST output routines to ast.ml.