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
Namespace: GCore.Antlr.Grammers.Bnf
Assembly: Bnf.dll
Syntax
public class bnfBaseListener : object, IbnfListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAlternative(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. |
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. |
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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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.