Options
All
  • Public
  • Public/Protected
  • All
Menu

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.

Hierarchy

  • GAstVisitor

Index

Constructors

constructor

Methods

visit

Abstract visitAlternation

Abstract visitAlternative

Abstract visitNonTerminal

Abstract visitOption

  • visitOption(node: Option): any

Abstract visitRepetition

Abstract visitRepetitionMandatory

Abstract visitRepetitionMandatoryWithSeparator

Abstract visitRepetitionWithSeparator

Abstract visitRule

  • visitRule(node: Rule): any

Abstract visitTerminal

Generated using TypeDoc