Class sgfBaseVisitor<Result>
This class provides an empty implementation of IsgfVisitor<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.Sgf
Assembly: Sgf.dll
Syntax
public class sgfBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IsgfVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitCollection(sgfParser.CollectionContext)
Visit a parse tree produced by collection().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCollection(sgfParser.CollectionContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.CollectionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGameInfo(sgfParser.GameInfoContext)
Visit a parse tree produced by gameInfo().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGameInfo(sgfParser.GameInfoContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameInfoContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGameTree(sgfParser.GameTreeContext)
Visit a parse tree produced by gameTree().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGameTree(sgfParser.GameTreeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameTreeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGo_(sgfParser.Go_Context)
Visit a parse tree produced by go_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGo_(sgfParser.Go_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Go_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLoa(sgfParser.LoaContext)
Visit a parse tree produced by loa().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLoa(sgfParser.LoaContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.LoaContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMarkup(sgfParser.MarkupContext)
Visit a parse tree produced by markup().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMarkup(sgfParser.MarkupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MarkupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMisc(sgfParser.MiscContext)
Visit a parse tree produced by misc().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMisc(sgfParser.MiscContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MiscContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMove(sgfParser.MoveContext)
Visit a parse tree produced by move().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMove(sgfParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMoveAnnotation(sgfParser.MoveAnnotationContext)
Visit a parse tree produced by moveAnnotation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMoveAnnotation(sgfParser.MoveAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveAnnotationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNode(sgfParser.NodeContext)
Visit a parse tree produced by node().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNode(sgfParser.NodeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNodeAnnotation(sgfParser.NodeAnnotationContext)
Visit a parse tree produced by nodeAnnotation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNodeAnnotation(sgfParser.NodeAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeAnnotationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPrivateProp(sgfParser.PrivatePropContext)
Visit a parse tree produced by privateProp().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPrivateProp(sgfParser.PrivatePropContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.PrivatePropContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProperty_(sgfParser.Property_Context)
Visit a parse tree produced by property_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProperty_(sgfParser.Property_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Property_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRoot(sgfParser.RootContext)
Visit a parse tree produced by root().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRoot(sgfParser.RootContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.RootContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSequence(sgfParser.SequenceContext)
Visit a parse tree produced by sequence().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSequence(sgfParser.SequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SequenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSetup(sgfParser.SetupContext)
Visit a parse tree produced by setup().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSetup(sgfParser.SetupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SetupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTiming(sgfParser.TimingContext)
Visit a parse tree produced by timing().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTiming(sgfParser.TimingContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.TimingContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |