Add DOT export for AST.