Show / Hide Table of Contents

Class pdnBaseVisitor<Result>

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

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

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitGame(pdnParser.GameContext)

Visit a parse tree produced by game().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGame(pdnParser.GameContext context)
Parameters
Type Name Description
pdnParser.GameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMove(pdnParser.MoveContext)

Visit a parse tree produced by move().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMove(pdnParser.MoveContext context)
Parameters
Type Name Description
pdnParser.MoveContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMovenum(pdnParser.MovenumContext)

Visit a parse tree produced by movenum().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMovenum(pdnParser.MovenumContext context)
Parameters
Type Name Description
pdnParser.MovenumContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMoves(pdnParser.MovesContext)

Visit a parse tree produced by moves().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMoves(pdnParser.MovesContext context)
Parameters
Type Name Description
pdnParser.MovesContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMovespec(pdnParser.MovespecContext)

Visit a parse tree produced by movespec().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMovespec(pdnParser.MovespecContext context)
Parameters
Type Name Description
pdnParser.MovespecContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(pdnParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNumber(pdnParser.NumberContext context)
Parameters
Type Name Description
pdnParser.NumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitResult(pdnParser.ResultContext)

Visit a parse tree produced by result().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitResult(pdnParser.ResultContext context)
Parameters
Type Name Description
pdnParser.ResultContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitString(pdnParser.StringContext)

Visit a parse tree produced by .

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitString(pdnParser.StringContext context)
Parameters
Type Name Description
pdnParser.StringContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTag(pdnParser.TagContext)

Visit a parse tree produced by tag().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTag(pdnParser.TagContext context)
Parameters
Type Name Description
pdnParser.TagContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTags(pdnParser.TagsContext)

Visit a parse tree produced by tags().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTags(pdnParser.TagsContext context)
Parameters
Type Name Description
pdnParser.TagsContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitText(pdnParser.TextContext)

Visit a parse tree produced by text().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitText(pdnParser.TextContext context)
Parameters
Type Name Description
pdnParser.TextContext context

The parse tree.

Returns
Type Description
Result

Implements

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