Package polyglot.visit

Contains the standard visitors which provide type checking as well as output.

See: Description

Package polyglot.visit Description

Contains the standard visitors which provide type checking as well as output. The visitor specification is defined in polyglot.visit.NodeVisitor. HaltingVisitor provides a method to prune the visitor traversal. ContextVisitor contains code to automatically enter and leave scopes and to manage error messages. Most other visitors are subclasses of this class. PrettyPrinter is not a visitor (the package name is a misnomer for historical reasons). It contains methods for pretty-printing the AST. The code generator is implemented by the Translator translator class, which is PrettyPrinter that opens appropriate Java output files.