Add some visitors.

The compiler currently prints the AST of the given file to standard
output, and will complain if the name of the method in the main
class declaration isn't "main".