Show / Hide Table of Contents

Class fenBaseVisitor<Result>

This class provides an empty implementation of IfenVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
fenBaseVisitor<Result>
Implements
IfenVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Fen
Assembly: Fen.dll
Syntax
public class fenBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IfenVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitCastling(fenParser.CastlingContext)

Visit a parse tree produced by castling().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCastling(fenParser.CastlingContext context)
Parameters
Type Name Description
fenParser.CastlingContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitColor(fenParser.ColorContext)

Visit a parse tree produced by color().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitColor(fenParser.ColorContext context)
Parameters
Type Name Description
fenParser.ColorContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEnpassant(fenParser.EnpassantContext)

Visit a parse tree produced by enpassant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEnpassant(fenParser.EnpassantContext context)
Parameters
Type Name Description
fenParser.EnpassantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFen(fenParser.FenContext)

Visit a parse tree produced by fen().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFen(fenParser.FenContext context)
Parameters
Type Name Description
fenParser.FenContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFullmoveclock(fenParser.FullmoveclockContext)

Visit a parse tree produced by fullmoveclock().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFullmoveclock(fenParser.FullmoveclockContext context)
Parameters
Type Name Description
fenParser.FullmoveclockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitHalfmoveclock(fenParser.HalfmoveclockContext)

Visit a parse tree produced by halfmoveclock().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitHalfmoveclock(fenParser.HalfmoveclockContext context)
Parameters
Type Name Description
fenParser.HalfmoveclockContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPiece(fenParser.PieceContext)

Visit a parse tree produced by piece().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPiece(fenParser.PieceContext context)
Parameters
Type Name Description
fenParser.PieceContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPlacement(fenParser.PlacementContext)

Visit a parse tree produced by placement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPlacement(fenParser.PlacementContext context)
Parameters
Type Name Description
fenParser.PlacementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPosition(fenParser.PositionContext)

Visit a parse tree produced by position().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPosition(fenParser.PositionContext context)
Parameters
Type Name Description
fenParser.PositionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRank(fenParser.RankContext)

Visit a parse tree produced by rank().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRank(fenParser.RankContext context)
Parameters
Type Name Description
fenParser.RankContext context

The parse tree.

Returns
Type Description
Result

Implements

IfenVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX