Interface IbnfVisitor<Result>
This interface defines a complete generic visitor for a parse tree produced by bnfParser.
Namespace: GCore.Antlr.Grammers.Bnf
Assembly: Bnf.dll
Syntax
public interface IbnfVisitor<Result> : IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAlternative(bnfParser.AlternativeContext)
Visit a parse tree produced by alternative().
Declaration
Result VisitAlternative(bnfParser.AlternativeContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.AlternativeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAlternatives(bnfParser.AlternativesContext)
Visit a parse tree produced by alternatives().
Declaration
Result VisitAlternatives(bnfParser.AlternativesContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.AlternativesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement(bnfParser.ElementContext)
Visit a parse tree produced by element().
Declaration
Result VisitElement(bnfParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.ElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitId_(bnfParser.Id_Context)
Visit a parse tree produced by id_().
Declaration
Result VisitId_(bnfParser.Id_Context context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.Id_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLhs(bnfParser.LhsContext)
Visit a parse tree produced by lhs().
Declaration
Result VisitLhs(bnfParser.LhsContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.LhsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOneormore(bnfParser.OneormoreContext)
Visit a parse tree produced by oneormore().
Declaration
Result VisitOneormore(bnfParser.OneormoreContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.OneormoreContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOptional_(bnfParser.Optional_Context)
Visit a parse tree produced by optional_().
Declaration
Result VisitOptional_(bnfParser.Optional_Context context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.Optional_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRhs(bnfParser.RhsContext)
Visit a parse tree produced by rhs().
Declaration
Result VisitRhs(bnfParser.RhsContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.RhsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRule_(bnfParser.Rule_Context)
Visit a parse tree produced by rule_().
Declaration
Result VisitRule_(bnfParser.Rule_Context context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.Rule_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRuleid(bnfParser.RuleidContext)
Visit a parse tree produced by ruleid().
Declaration
Result VisitRuleid(bnfParser.RuleidContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.RuleidContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRulelist(bnfParser.RulelistContext)
Visit a parse tree produced by rulelist().
Declaration
Result VisitRulelist(bnfParser.RulelistContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.RulelistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitText_(bnfParser.Text_Context)
Visit a parse tree produced by text_().
Declaration
Result VisitText_(bnfParser.Text_Context context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.Text_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitZeroormore(bnfParser.ZeroormoreContext)
Visit a parse tree produced by zeroormore().
Declaration
Result VisitZeroormore(bnfParser.ZeroormoreContext context)
Parameters
Type | Name | Description |
---|---|---|
bnfParser.ZeroormoreContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |