Class AbnfBaseListener
This class provides an empty implementation of IAbnfListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Abnf
Assembly: Abnf.dll
Syntax
public class AbnfBaseListener : object, IAbnfListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAlternation(AbnfParser.AlternationContext)
Enter a parse tree produced by alternation().
The default implementation does nothing.
Declaration
public virtual void EnterAlternation(AbnfParser.AlternationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.AlternationContext | context | The parse tree. |
EnterConcatenation(AbnfParser.ConcatenationContext)
Enter a parse tree produced by concatenation().
The default implementation does nothing.
Declaration
public virtual void EnterConcatenation(AbnfParser.ConcatenationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ConcatenationContext | context | The parse tree. |
EnterElement(AbnfParser.ElementContext)
Enter a parse tree produced by element().
The default implementation does nothing.
Declaration
public virtual void EnterElement(AbnfParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementContext | context | The parse tree. |
EnterElements(AbnfParser.ElementsContext)
Enter a parse tree produced by elements().
The default implementation does nothing.
Declaration
public virtual void EnterElements(AbnfParser.ElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementsContext | context | The parse tree. |
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.
EnterGroup(AbnfParser.GroupContext)
Enter a parse tree produced by group().
The default implementation does nothing.
Declaration
public virtual void EnterGroup(AbnfParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.GroupContext | context | The parse tree. |
EnterOption(AbnfParser.OptionContext)
Enter a parse tree produced by option().
The default implementation does nothing.
Declaration
public virtual void EnterOption(AbnfParser.OptionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.OptionContext | context | The parse tree. |
EnterRepeat_(AbnfParser.Repeat_Context)
Enter a parse tree produced by repeat_().
The default implementation does nothing.
Declaration
public virtual void EnterRepeat_(AbnfParser.Repeat_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Repeat_Context | context | The parse tree. |
EnterRepetition(AbnfParser.RepetitionContext)
Enter a parse tree produced by repetition().
The default implementation does nothing.
Declaration
public virtual void EnterRepetition(AbnfParser.RepetitionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RepetitionContext | context | The parse tree. |
EnterRule_(AbnfParser.Rule_Context)
Enter a parse tree produced by rule_().
The default implementation does nothing.
Declaration
public virtual void EnterRule_(AbnfParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Rule_Context | context | The parse tree. |
EnterRulelist(AbnfParser.RulelistContext)
Enter a parse tree produced by rulelist().
The default implementation does nothing.
Declaration
public virtual void EnterRulelist(AbnfParser.RulelistContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RulelistContext | context | The parse tree. |
ExitAlternation(AbnfParser.AlternationContext)
Exit a parse tree produced by alternation().
The default implementation does nothing.
Declaration
public virtual void ExitAlternation(AbnfParser.AlternationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.AlternationContext | context | The parse tree. |
ExitConcatenation(AbnfParser.ConcatenationContext)
Exit a parse tree produced by concatenation().
The default implementation does nothing.
Declaration
public virtual void ExitConcatenation(AbnfParser.ConcatenationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ConcatenationContext | context | The parse tree. |
ExitElement(AbnfParser.ElementContext)
Exit a parse tree produced by element().
The default implementation does nothing.
Declaration
public virtual void ExitElement(AbnfParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementContext | context | The parse tree. |
ExitElements(AbnfParser.ElementsContext)
Exit a parse tree produced by elements().
The default implementation does nothing.
Declaration
public virtual void ExitElements(AbnfParser.ElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementsContext | context | The parse tree. |
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.
ExitGroup(AbnfParser.GroupContext)
Exit a parse tree produced by group().
The default implementation does nothing.
Declaration
public virtual void ExitGroup(AbnfParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.GroupContext | context | The parse tree. |
ExitOption(AbnfParser.OptionContext)
Exit a parse tree produced by option().
The default implementation does nothing.
Declaration
public virtual void ExitOption(AbnfParser.OptionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.OptionContext | context | The parse tree. |
ExitRepeat_(AbnfParser.Repeat_Context)
Exit a parse tree produced by repeat_().
The default implementation does nothing.
Declaration
public virtual void ExitRepeat_(AbnfParser.Repeat_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Repeat_Context | context | The parse tree. |
ExitRepetition(AbnfParser.RepetitionContext)
Exit a parse tree produced by repetition().
The default implementation does nothing.
Declaration
public virtual void ExitRepetition(AbnfParser.RepetitionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RepetitionContext | context | The parse tree. |
ExitRule_(AbnfParser.Rule_Context)
Exit a parse tree produced by rule_().
The default implementation does nothing.
Declaration
public virtual void ExitRule_(AbnfParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Rule_Context | context | The parse tree. |
ExitRulelist(AbnfParser.RulelistContext)
Exit a parse tree produced by rulelist().
The default implementation does nothing.
Declaration
public virtual void ExitRulelist(AbnfParser.RulelistContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RulelistContext | context | The parse tree. |
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.
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.