Methods
Abstract visitAlternation
Abstract visitAlternative
Abstract visitNonTerminal
Abstract visitOption
- visitOption(node: Option): any
Abstract visitRepetitionMandatory
Abstract visitRepetitionMandatoryWithSeparator
Abstract visitRepetitionWithSeparator
Abstract visitRule
- visitRule(node: Rule): any
A very basic implementation of a Visitor Pattern For the Grammar AST structure.
This may be useful for advanced users who create custom logic on the grammar AST. For example, custom validations or introspection.