Class infBaseVisitor<Result>
This class provides an empty implementation of IinfVisitor<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.Inf
Assembly: Inf.dll
Syntax
public class infBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IinfVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitInf(infParser.InfContext)
Visit a parse tree produced by inf().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInf(infParser.InfContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.InfContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(infParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(infParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSection(infParser.SectionContext)
Visit a parse tree produced by section().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSection(infParser.SectionContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.SectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSectionheader(infParser.SectionheaderContext)
Visit a parse tree produced by sectionheader().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSectionheader(infParser.SectionheaderContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.SectionheaderContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString(infParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(infParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.StringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStringlist(infParser.StringlistContext)
Visit a parse tree produced by stringlist().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStringlist(infParser.StringlistContext context)
Parameters
Type | Name | Description |
---|---|---|
infParser.StringlistContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |