Show / Hide Table of Contents

Class bnfBaseListener

This class provides an empty implementation of IbnfListener, which can be extended to create a listener which only needs to handle a subset of the available methods.

Inheritance
System.Object
bnfBaseListener
Implements
IbnfListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Bnf
Assembly: Bnf.dll
Syntax
public class bnfBaseListener : object, IbnfListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterAlternative(bnfParser.AlternativeContext)

Enter a parse tree produced by alternative().

The default implementation does nothing.

Declaration
public virtual void EnterAlternative(bnfParser.AlternativeContext context)
Parameters
Type Name Description
bnfParser.AlternativeContext context

The parse tree.

| Improve this Doc View Source

EnterAlternatives(bnfParser.AlternativesContext)

Enter a parse tree produced by alternatives().

The default implementation does nothing.

Declaration
public virtual void EnterAlternatives(bnfParser.AlternativesContext context)
Parameters
Type Name Description
bnfParser.AlternativesContext context

The parse tree.

| Improve this Doc View Source

EnterElement(bnfParser.ElementContext)

Enter a parse tree produced by element().

The default implementation does nothing.

Declaration
public virtual void EnterElement(bnfParser.ElementContext context)
Parameters
Type Name Description
bnfParser.ElementContext context

The parse tree.

| Improve this Doc View Source

EnterEveryRule(Antlr4.Runtime.ParserRuleContext)

Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type Name Description
Antlr4.Runtime.ParserRuleContext context
Remarks

The default implementation does nothing.

| Improve this Doc View Source

EnterId_(bnfParser.Id_Context)

Enter a parse tree produced by id_().

The default implementation does nothing.

Declaration
public virtual void EnterId_(bnfParser.Id_Context context)
Parameters
Type Name Description
bnfParser.Id_Context context

The parse tree.

| Improve this Doc View Source

EnterLhs(bnfParser.LhsContext)

Enter a parse tree produced by lhs().

The default implementation does nothing.

Declaration
public virtual void EnterLhs(bnfParser.LhsContext context)
Parameters
Type Name Description
bnfParser.LhsContext context

The parse tree.

| Improve this Doc View Source

EnterOneormore(bnfParser.OneormoreContext)

Enter a parse tree produced by oneormore().

The default implementation does nothing.

Declaration
public virtual void EnterOneormore(bnfParser.OneormoreContext context)
Parameters
Type Name Description
bnfParser.OneormoreContext context

The parse tree.

| Improve this Doc View Source

EnterOptional_(bnfParser.Optional_Context)

Enter a parse tree produced by optional_().

The default implementation does nothing.

Declaration
public virtual void EnterOptional_(bnfParser.Optional_Context context)
Parameters
Type Name Description
bnfParser.Optional_Context context

The parse tree.

| Improve this Doc View Source

EnterRhs(bnfParser.RhsContext)

Enter a parse tree produced by rhs().

The default implementation does nothing.

Declaration
public virtual void EnterRhs(bnfParser.RhsContext context)
Parameters
Type Name Description
bnfParser.RhsContext context

The parse tree.

| Improve this Doc View Source

EnterRule_(bnfParser.Rule_Context)

Enter a parse tree produced by rule_().

The default implementation does nothing.

Declaration
public virtual void EnterRule_(bnfParser.Rule_Context context)
Parameters
Type Name Description
bnfParser.Rule_Context context

The parse tree.

| Improve this Doc View Source

EnterRuleid(bnfParser.RuleidContext)

Enter a parse tree produced by ruleid().

The default implementation does nothing.

Declaration
public virtual void EnterRuleid(bnfParser.RuleidContext context)
Parameters
Type Name Description
bnfParser.RuleidContext context

The parse tree.

| Improve this Doc View Source

EnterRulelist(bnfParser.RulelistContext)

Enter a parse tree produced by rulelist().

The default implementation does nothing.

Declaration
public virtual void EnterRulelist(bnfParser.RulelistContext context)
Parameters
Type Name Description
bnfParser.RulelistContext context

The parse tree.

| Improve this Doc View Source

EnterText_(bnfParser.Text_Context)

Enter a parse tree produced by text_().

The default implementation does nothing.

Declaration
public virtual void EnterText_(bnfParser.Text_Context context)
Parameters
Type Name Description
bnfParser.Text_Context context

The parse tree.

| Improve this Doc View Source

EnterZeroormore(bnfParser.ZeroormoreContext)

Enter a parse tree produced by zeroormore().

The default implementation does nothing.

Declaration
public virtual void EnterZeroormore(bnfParser.ZeroormoreContext context)
Parameters
Type Name Description
bnfParser.ZeroormoreContext context

The parse tree.

| Improve this Doc View Source

ExitAlternative(bnfParser.AlternativeContext)

Exit a parse tree produced by alternative().

The default implementation does nothing.

Declaration
public virtual void ExitAlternative(bnfParser.AlternativeContext context)
Parameters
Type Name Description
bnfParser.AlternativeContext context

The parse tree.

| Improve this Doc View Source

ExitAlternatives(bnfParser.AlternativesContext)

Exit a parse tree produced by alternatives().

The default implementation does nothing.

Declaration
public virtual void ExitAlternatives(bnfParser.AlternativesContext context)
Parameters
Type Name Description
bnfParser.AlternativesContext context

The parse tree.

| Improve this Doc View Source

ExitElement(bnfParser.ElementContext)

Exit a parse tree produced by element().

The default implementation does nothing.

Declaration
public virtual void ExitElement(bnfParser.ElementContext context)
Parameters
Type Name Description
bnfParser.ElementContext context

The parse tree.

| Improve this Doc View Source

ExitEveryRule(Antlr4.Runtime.ParserRuleContext)

Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type Name Description
Antlr4.Runtime.ParserRuleContext context
Remarks

The default implementation does nothing.

| Improve this Doc View Source

ExitId_(bnfParser.Id_Context)

Exit a parse tree produced by id_().

The default implementation does nothing.

Declaration
public virtual void ExitId_(bnfParser.Id_Context context)
Parameters
Type Name Description
bnfParser.Id_Context context

The parse tree.

| Improve this Doc View Source

ExitLhs(bnfParser.LhsContext)

Exit a parse tree produced by lhs().

The default implementation does nothing.

Declaration
public virtual void ExitLhs(bnfParser.LhsContext context)
Parameters
Type Name Description
bnfParser.LhsContext context

The parse tree.

| Improve this Doc View Source

ExitOneormore(bnfParser.OneormoreContext)

Exit a parse tree produced by oneormore().

The default implementation does nothing.

Declaration
public virtual void ExitOneormore(bnfParser.OneormoreContext context)
Parameters
Type Name Description
bnfParser.OneormoreContext context

The parse tree.

| Improve this Doc View Source

ExitOptional_(bnfParser.Optional_Context)

Exit a parse tree produced by optional_().

The default implementation does nothing.

Declaration
public virtual void ExitOptional_(bnfParser.Optional_Context context)
Parameters
Type Name Description
bnfParser.Optional_Context context

The parse tree.

| Improve this Doc View Source

ExitRhs(bnfParser.RhsContext)

Exit a parse tree produced by rhs().

The default implementation does nothing.

Declaration
public virtual void ExitRhs(bnfParser.RhsContext context)
Parameters
Type Name Description
bnfParser.RhsContext context

The parse tree.

| Improve this Doc View Source

ExitRule_(bnfParser.Rule_Context)

Exit a parse tree produced by rule_().

The default implementation does nothing.

Declaration
public virtual void ExitRule_(bnfParser.Rule_Context context)
Parameters
Type Name Description
bnfParser.Rule_Context context

The parse tree.

| Improve this Doc View Source

ExitRuleid(bnfParser.RuleidContext)

Exit a parse tree produced by ruleid().

The default implementation does nothing.

Declaration
public virtual void ExitRuleid(bnfParser.RuleidContext context)
Parameters
Type Name Description
bnfParser.RuleidContext context

The parse tree.

| Improve this Doc View Source

ExitRulelist(bnfParser.RulelistContext)

Exit a parse tree produced by rulelist().

The default implementation does nothing.

Declaration
public virtual void ExitRulelist(bnfParser.RulelistContext context)
Parameters
Type Name Description
bnfParser.RulelistContext context

The parse tree.

| Improve this Doc View Source

ExitText_(bnfParser.Text_Context)

Exit a parse tree produced by text_().

The default implementation does nothing.

Declaration
public virtual void ExitText_(bnfParser.Text_Context context)
Parameters
Type Name Description
bnfParser.Text_Context context

The parse tree.

| Improve this Doc View Source

ExitZeroormore(bnfParser.ZeroormoreContext)

Exit a parse tree produced by zeroormore().

The default implementation does nothing.

Declaration
public virtual void ExitZeroormore(bnfParser.ZeroormoreContext context)
Parameters
Type Name Description
bnfParser.ZeroormoreContext context

The parse tree.

| Improve this Doc View Source

VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)

Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type Name Description
Antlr4.Runtime.Tree.IErrorNode node
Remarks

The default implementation does nothing.

| Improve this Doc View Source

VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)

Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type Name Description
Antlr4.Runtime.Tree.ITerminalNode node
Remarks

The default implementation does nothing.

Implements

IbnfListener
Antlr4.Runtime.Tree.IParseTreeListener
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX