Class AbnfBaseVisitor<Result>
This class provides an empty implementation of IAbnfVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Abnf
Assembly: Abnf.dll
Syntax
public class AbnfBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IAbnfVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAlternation(AbnfParser.AlternationContext)
Visit a parse tree produced by alternation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAlternation(AbnfParser.AlternationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.AlternationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConcatenation(AbnfParser.ConcatenationContext)
Visit a parse tree produced by concatenation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConcatenation(AbnfParser.ConcatenationContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ConcatenationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement(AbnfParser.ElementContext)
Visit a parse tree produced by element().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElement(AbnfParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElements(AbnfParser.ElementsContext)
Visit a parse tree produced by elements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElements(AbnfParser.ElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.ElementsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup(AbnfParser.GroupContext)
Visit a parse tree produced by group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup(AbnfParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.GroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOption(AbnfParser.OptionContext)
Visit a parse tree produced by option().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOption(AbnfParser.OptionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.OptionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRepeat_(AbnfParser.Repeat_Context)
Visit a parse tree produced by repeat_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRepeat_(AbnfParser.Repeat_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Repeat_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRepetition(AbnfParser.RepetitionContext)
Visit a parse tree produced by repetition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRepetition(AbnfParser.RepetitionContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RepetitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRule_(AbnfParser.Rule_Context)
Visit a parse tree produced by rule_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRule_(AbnfParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.Rule_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRulelist(AbnfParser.RulelistContext)
Visit a parse tree produced by rulelist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRulelist(AbnfParser.RulelistContext context)
Parameters
Type | Name | Description |
---|---|---|
AbnfParser.RulelistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |