Implement pretty print visitor.