Class fenBaseListener
This class provides an empty implementation of IfenListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Fen
Assembly: Fen.dll
Syntax
public class fenBaseListener : object, IfenListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterCastling(fenParser.CastlingContext)
Enter a parse tree produced by castling().
The default implementation does nothing.
Declaration
public virtual void EnterCastling(fenParser.CastlingContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.CastlingContext | context | The parse tree. |
EnterColor(fenParser.ColorContext)
Enter a parse tree produced by color().
The default implementation does nothing.
Declaration
public virtual void EnterColor(fenParser.ColorContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.ColorContext | context | The parse tree. |
EnterEnpassant(fenParser.EnpassantContext)
Enter a parse tree produced by enpassant().
The default implementation does nothing.
Declaration
public virtual void EnterEnpassant(fenParser.EnpassantContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.EnpassantContext | 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.
EnterFen(fenParser.FenContext)
Enter a parse tree produced by fen().
The default implementation does nothing.
Declaration
public virtual void EnterFen(fenParser.FenContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.FenContext | context | The parse tree. |
EnterFullmoveclock(fenParser.FullmoveclockContext)
Enter a parse tree produced by fullmoveclock().
The default implementation does nothing.
Declaration
public virtual void EnterFullmoveclock(fenParser.FullmoveclockContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.FullmoveclockContext | context | The parse tree. |
EnterHalfmoveclock(fenParser.HalfmoveclockContext)
Enter a parse tree produced by halfmoveclock().
The default implementation does nothing.
Declaration
public virtual void EnterHalfmoveclock(fenParser.HalfmoveclockContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.HalfmoveclockContext | context | The parse tree. |
EnterPiece(fenParser.PieceContext)
Enter a parse tree produced by piece().
The default implementation does nothing.
Declaration
public virtual void EnterPiece(fenParser.PieceContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PieceContext | context | The parse tree. |
EnterPlacement(fenParser.PlacementContext)
Enter a parse tree produced by placement().
The default implementation does nothing.
Declaration
public virtual void EnterPlacement(fenParser.PlacementContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PlacementContext | context | The parse tree. |
EnterPosition(fenParser.PositionContext)
Enter a parse tree produced by position().
The default implementation does nothing.
Declaration
public virtual void EnterPosition(fenParser.PositionContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PositionContext | context | The parse tree. |
EnterRank(fenParser.RankContext)
Enter a parse tree produced by rank().
The default implementation does nothing.
Declaration
public virtual void EnterRank(fenParser.RankContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.RankContext | context | The parse tree. |
ExitCastling(fenParser.CastlingContext)
Exit a parse tree produced by castling().
The default implementation does nothing.
Declaration
public virtual void ExitCastling(fenParser.CastlingContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.CastlingContext | context | The parse tree. |
ExitColor(fenParser.ColorContext)
Exit a parse tree produced by color().
The default implementation does nothing.
Declaration
public virtual void ExitColor(fenParser.ColorContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.ColorContext | context | The parse tree. |
ExitEnpassant(fenParser.EnpassantContext)
Exit a parse tree produced by enpassant().
The default implementation does nothing.
Declaration
public virtual void ExitEnpassant(fenParser.EnpassantContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.EnpassantContext | 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.
ExitFen(fenParser.FenContext)
Exit a parse tree produced by fen().
The default implementation does nothing.
Declaration
public virtual void ExitFen(fenParser.FenContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.FenContext | context | The parse tree. |
ExitFullmoveclock(fenParser.FullmoveclockContext)
Exit a parse tree produced by fullmoveclock().
The default implementation does nothing.
Declaration
public virtual void ExitFullmoveclock(fenParser.FullmoveclockContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.FullmoveclockContext | context | The parse tree. |
ExitHalfmoveclock(fenParser.HalfmoveclockContext)
Exit a parse tree produced by halfmoveclock().
The default implementation does nothing.
Declaration
public virtual void ExitHalfmoveclock(fenParser.HalfmoveclockContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.HalfmoveclockContext | context | The parse tree. |
ExitPiece(fenParser.PieceContext)
Exit a parse tree produced by piece().
The default implementation does nothing.
Declaration
public virtual void ExitPiece(fenParser.PieceContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PieceContext | context | The parse tree. |
ExitPlacement(fenParser.PlacementContext)
Exit a parse tree produced by placement().
The default implementation does nothing.
Declaration
public virtual void ExitPlacement(fenParser.PlacementContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PlacementContext | context | The parse tree. |
ExitPosition(fenParser.PositionContext)
Exit a parse tree produced by position().
The default implementation does nothing.
Declaration
public virtual void ExitPosition(fenParser.PositionContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.PositionContext | context | The parse tree. |
ExitRank(fenParser.RankContext)
Exit a parse tree produced by rank().
The default implementation does nothing.
Declaration
public virtual void ExitRank(fenParser.RankContext context)
Parameters
Type | Name | Description |
---|---|---|
fenParser.RankContext | 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.