Show / Hide Table of Contents

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
System.Object
sgfBaseListener
Implements
IsgfListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Sgf
Assembly: Sgf.dll
Syntax
public class sgfBaseListener : object, IsgfListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterCollection(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IsgfListener
Antlr4.Runtime.Tree.IParseTreeListener
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX