Class sgfBaseListener
This class provides an empty implementation of IsgfListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Sgf
Assembly: Sgf.dll
Syntax
public class sgfBaseListener : object, IsgfListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterCollection(sgfParser.CollectionContext)
Enter a parse tree produced by collection().
The default implementation does nothing.
Declaration
public virtual void EnterCollection(sgfParser.CollectionContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.CollectionContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterGameInfo(sgfParser.GameInfoContext)
Enter a parse tree produced by gameInfo().
The default implementation does nothing.
Declaration
public virtual void EnterGameInfo(sgfParser.GameInfoContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameInfoContext | context | The parse tree. |
EnterGameTree(sgfParser.GameTreeContext)
Enter a parse tree produced by gameTree().
The default implementation does nothing.
Declaration
public virtual void EnterGameTree(sgfParser.GameTreeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameTreeContext | context | The parse tree. |
EnterGo_(sgfParser.Go_Context)
Enter a parse tree produced by go_().
The default implementation does nothing.
Declaration
public virtual void EnterGo_(sgfParser.Go_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Go_Context | context | The parse tree. |
EnterLoa(sgfParser.LoaContext)
Enter a parse tree produced by loa().
The default implementation does nothing.
Declaration
public virtual void EnterLoa(sgfParser.LoaContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.LoaContext | context | The parse tree. |
EnterMarkup(sgfParser.MarkupContext)
Enter a parse tree produced by markup().
The default implementation does nothing.
Declaration
public virtual void EnterMarkup(sgfParser.MarkupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MarkupContext | context | The parse tree. |
EnterMisc(sgfParser.MiscContext)
Enter a parse tree produced by misc().
The default implementation does nothing.
Declaration
public virtual void EnterMisc(sgfParser.MiscContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MiscContext | context | The parse tree. |
EnterMove(sgfParser.MoveContext)
Enter a parse tree produced by move().
The default implementation does nothing.
Declaration
public virtual void EnterMove(sgfParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveContext | context | The parse tree. |
EnterMoveAnnotation(sgfParser.MoveAnnotationContext)
Enter a parse tree produced by moveAnnotation().
The default implementation does nothing.
Declaration
public virtual void EnterMoveAnnotation(sgfParser.MoveAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveAnnotationContext | context | The parse tree. |
EnterNode(sgfParser.NodeContext)
Enter a parse tree produced by node().
The default implementation does nothing.
Declaration
public virtual void EnterNode(sgfParser.NodeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeContext | context | The parse tree. |
EnterNodeAnnotation(sgfParser.NodeAnnotationContext)
Enter a parse tree produced by nodeAnnotation().
The default implementation does nothing.
Declaration
public virtual void EnterNodeAnnotation(sgfParser.NodeAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeAnnotationContext | context | The parse tree. |
EnterPrivateProp(sgfParser.PrivatePropContext)
Enter a parse tree produced by privateProp().
The default implementation does nothing.
Declaration
public virtual void EnterPrivateProp(sgfParser.PrivatePropContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.PrivatePropContext | context | The parse tree. |
EnterProperty_(sgfParser.Property_Context)
Enter a parse tree produced by property_().
The default implementation does nothing.
Declaration
public virtual void EnterProperty_(sgfParser.Property_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Property_Context | context | The parse tree. |
EnterRoot(sgfParser.RootContext)
Enter a parse tree produced by root().
The default implementation does nothing.
Declaration
public virtual void EnterRoot(sgfParser.RootContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.RootContext | context | The parse tree. |
EnterSequence(sgfParser.SequenceContext)
Enter a parse tree produced by sequence().
The default implementation does nothing.
Declaration
public virtual void EnterSequence(sgfParser.SequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SequenceContext | context | The parse tree. |
EnterSetup(sgfParser.SetupContext)
Enter a parse tree produced by setup().
The default implementation does nothing.
Declaration
public virtual void EnterSetup(sgfParser.SetupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SetupContext | context | The parse tree. |
EnterTiming(sgfParser.TimingContext)
Enter a parse tree produced by timing().
The default implementation does nothing.
Declaration
public virtual void EnterTiming(sgfParser.TimingContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.TimingContext | context | The parse tree. |
ExitCollection(sgfParser.CollectionContext)
Exit a parse tree produced by collection().
The default implementation does nothing.
Declaration
public virtual void ExitCollection(sgfParser.CollectionContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.CollectionContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitGameInfo(sgfParser.GameInfoContext)
Exit a parse tree produced by gameInfo().
The default implementation does nothing.
Declaration
public virtual void ExitGameInfo(sgfParser.GameInfoContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameInfoContext | context | The parse tree. |
ExitGameTree(sgfParser.GameTreeContext)
Exit a parse tree produced by gameTree().
The default implementation does nothing.
Declaration
public virtual void ExitGameTree(sgfParser.GameTreeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.GameTreeContext | context | The parse tree. |
ExitGo_(sgfParser.Go_Context)
Exit a parse tree produced by go_().
The default implementation does nothing.
Declaration
public virtual void ExitGo_(sgfParser.Go_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Go_Context | context | The parse tree. |
ExitLoa(sgfParser.LoaContext)
Exit a parse tree produced by loa().
The default implementation does nothing.
Declaration
public virtual void ExitLoa(sgfParser.LoaContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.LoaContext | context | The parse tree. |
ExitMarkup(sgfParser.MarkupContext)
Exit a parse tree produced by markup().
The default implementation does nothing.
Declaration
public virtual void ExitMarkup(sgfParser.MarkupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MarkupContext | context | The parse tree. |
ExitMisc(sgfParser.MiscContext)
Exit a parse tree produced by misc().
The default implementation does nothing.
Declaration
public virtual void ExitMisc(sgfParser.MiscContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MiscContext | context | The parse tree. |
ExitMove(sgfParser.MoveContext)
Exit a parse tree produced by move().
The default implementation does nothing.
Declaration
public virtual void ExitMove(sgfParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveContext | context | The parse tree. |
ExitMoveAnnotation(sgfParser.MoveAnnotationContext)
Exit a parse tree produced by moveAnnotation().
The default implementation does nothing.
Declaration
public virtual void ExitMoveAnnotation(sgfParser.MoveAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.MoveAnnotationContext | context | The parse tree. |
ExitNode(sgfParser.NodeContext)
Exit a parse tree produced by node().
The default implementation does nothing.
Declaration
public virtual void ExitNode(sgfParser.NodeContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeContext | context | The parse tree. |
ExitNodeAnnotation(sgfParser.NodeAnnotationContext)
Exit a parse tree produced by nodeAnnotation().
The default implementation does nothing.
Declaration
public virtual void ExitNodeAnnotation(sgfParser.NodeAnnotationContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.NodeAnnotationContext | context | The parse tree. |
ExitPrivateProp(sgfParser.PrivatePropContext)
Exit a parse tree produced by privateProp().
The default implementation does nothing.
Declaration
public virtual void ExitPrivateProp(sgfParser.PrivatePropContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.PrivatePropContext | context | The parse tree. |
ExitProperty_(sgfParser.Property_Context)
Exit a parse tree produced by property_().
The default implementation does nothing.
Declaration
public virtual void ExitProperty_(sgfParser.Property_Context context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.Property_Context | context | The parse tree. |
ExitRoot(sgfParser.RootContext)
Exit a parse tree produced by root().
The default implementation does nothing.
Declaration
public virtual void ExitRoot(sgfParser.RootContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.RootContext | context | The parse tree. |
ExitSequence(sgfParser.SequenceContext)
Exit a parse tree produced by sequence().
The default implementation does nothing.
Declaration
public virtual void ExitSequence(sgfParser.SequenceContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SequenceContext | context | The parse tree. |
ExitSetup(sgfParser.SetupContext)
Exit a parse tree produced by setup().
The default implementation does nothing.
Declaration
public virtual void ExitSetup(sgfParser.SetupContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.SetupContext | context | The parse tree. |
ExitTiming(sgfParser.TimingContext)
Exit a parse tree produced by timing().
The default implementation does nothing.
Declaration
public virtual void ExitTiming(sgfParser.TimingContext context)
Parameters
Type | Name | Description |
---|---|---|
sgfParser.TimingContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.