Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GAstVisitor

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

Methods

visit

Abstract visitAlternation

Abstract visitFlat

  • visitFlat(node: Flat): any

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