dil.ast.Visitor

Members

Classes

Visitor
class Visitor

Implements a variation of the visitor pattern.

Visitor2
class Visitor2

The same as class Visitor, but the methods return void. This class is suitable when you don't want to transform the AST.

Functions

callVisitMethod
Ret callVisitMethod(Object visitorInstance, Node n, NodeKind k)

Calls the visitor method that can handle node n.

generateVisitMethods
char[] generateVisitMethods()

Generates visit methods for all classes.

generateVisitMethods2
char[] generateVisitMethods2()

Same as generateVisitMethods, but return void instead.

Templates

returnType
template returnType(Class)

Gets the appropriate return type for the provided class.

Meta

Authors

Aziz Köksal

License

GPL3 $(Maturity very high)