Class pdnBaseVisitor<Result>
This class provides an empty implementation of IpdnVisitor<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.Pdn
Assembly: Pdn.dll
Syntax
public class pdnBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IpdnVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitGame(pdnParser.GameContext)
Visit a parse tree produced by game().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGame(pdnParser.GameContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.GameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMove(pdnParser.MoveContext)
Visit a parse tree produced by move().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMove(pdnParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MoveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMovenum(pdnParser.MovenumContext)
Visit a parse tree produced by movenum().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMovenum(pdnParser.MovenumContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovenumContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMoves(pdnParser.MovesContext)
Visit a parse tree produced by moves().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMoves(pdnParser.MovesContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMovespec(pdnParser.MovespecContext)
Visit a parse tree produced by movespec().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMovespec(pdnParser.MovespecContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovespecContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(pdnParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(pdnParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitResult(pdnParser.ResultContext)
Visit a parse tree produced by result().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitResult(pdnParser.ResultContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.ResultContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitString(pdnParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(pdnParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.StringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTag(pdnParser.TagContext)
Visit a parse tree produced by tag().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTag(pdnParser.TagContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTags(pdnParser.TagsContext)
Visit a parse tree produced by tags().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTags(pdnParser.TagsContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitText(pdnParser.TextContext)
Visit a parse tree produced by text().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitText(pdnParser.TextContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TextContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |