Class pdnBaseListener
This class provides an empty implementation of IpdnListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Pdn
Assembly: Pdn.dll
Syntax
public class pdnBaseListener : object, IpdnListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterEveryRule(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.
EnterGame(pdnParser.GameContext)
Enter a parse tree produced by game().
The default implementation does nothing.
Declaration
public virtual void EnterGame(pdnParser.GameContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.GameContext | context | The parse tree. |
EnterMove(pdnParser.MoveContext)
Enter a parse tree produced by move().
The default implementation does nothing.
Declaration
public virtual void EnterMove(pdnParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MoveContext | context | The parse tree. |
EnterMovenum(pdnParser.MovenumContext)
Enter a parse tree produced by movenum().
The default implementation does nothing.
Declaration
public virtual void EnterMovenum(pdnParser.MovenumContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovenumContext | context | The parse tree. |
EnterMoves(pdnParser.MovesContext)
Enter a parse tree produced by moves().
The default implementation does nothing.
Declaration
public virtual void EnterMoves(pdnParser.MovesContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovesContext | context | The parse tree. |
EnterMovespec(pdnParser.MovespecContext)
Enter a parse tree produced by movespec().
The default implementation does nothing.
Declaration
public virtual void EnterMovespec(pdnParser.MovespecContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovespecContext | context | The parse tree. |
EnterNumber(pdnParser.NumberContext)
Enter a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void EnterNumber(pdnParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.NumberContext | context | The parse tree. |
EnterResult(pdnParser.ResultContext)
Enter a parse tree produced by result().
The default implementation does nothing.
Declaration
public virtual void EnterResult(pdnParser.ResultContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.ResultContext | context | The parse tree. |
EnterString(pdnParser.StringContext)
Enter a parse tree produced by
The default implementation does nothing.
Declaration
public virtual void EnterString(pdnParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.StringContext | context | The parse tree. |
EnterTag(pdnParser.TagContext)
Enter a parse tree produced by tag().
The default implementation does nothing.
Declaration
public virtual void EnterTag(pdnParser.TagContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagContext | context | The parse tree. |
EnterTags(pdnParser.TagsContext)
Enter a parse tree produced by tags().
The default implementation does nothing.
Declaration
public virtual void EnterTags(pdnParser.TagsContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagsContext | context | The parse tree. |
EnterText(pdnParser.TextContext)
Enter a parse tree produced by text().
The default implementation does nothing.
Declaration
public virtual void EnterText(pdnParser.TextContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TextContext | 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.
ExitGame(pdnParser.GameContext)
Exit a parse tree produced by game().
The default implementation does nothing.
Declaration
public virtual void ExitGame(pdnParser.GameContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.GameContext | context | The parse tree. |
ExitMove(pdnParser.MoveContext)
Exit a parse tree produced by move().
The default implementation does nothing.
Declaration
public virtual void ExitMove(pdnParser.MoveContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MoveContext | context | The parse tree. |
ExitMovenum(pdnParser.MovenumContext)
Exit a parse tree produced by movenum().
The default implementation does nothing.
Declaration
public virtual void ExitMovenum(pdnParser.MovenumContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovenumContext | context | The parse tree. |
ExitMoves(pdnParser.MovesContext)
Exit a parse tree produced by moves().
The default implementation does nothing.
Declaration
public virtual void ExitMoves(pdnParser.MovesContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovesContext | context | The parse tree. |
ExitMovespec(pdnParser.MovespecContext)
Exit a parse tree produced by movespec().
The default implementation does nothing.
Declaration
public virtual void ExitMovespec(pdnParser.MovespecContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.MovespecContext | context | The parse tree. |
ExitNumber(pdnParser.NumberContext)
Exit a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void ExitNumber(pdnParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.NumberContext | context | The parse tree. |
ExitResult(pdnParser.ResultContext)
Exit a parse tree produced by result().
The default implementation does nothing.
Declaration
public virtual void ExitResult(pdnParser.ResultContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.ResultContext | context | The parse tree. |
ExitString(pdnParser.StringContext)
Exit a parse tree produced by
The default implementation does nothing.
Declaration
public virtual void ExitString(pdnParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.StringContext | context | The parse tree. |
ExitTag(pdnParser.TagContext)
Exit a parse tree produced by tag().
The default implementation does nothing.
Declaration
public virtual void ExitTag(pdnParser.TagContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagContext | context | The parse tree. |
ExitTags(pdnParser.TagsContext)
Exit a parse tree produced by tags().
The default implementation does nothing.
Declaration
public virtual void ExitTags(pdnParser.TagsContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TagsContext | context | The parse tree. |
ExitText(pdnParser.TextContext)
Exit a parse tree produced by text().
The default implementation does nothing.
Declaration
public virtual void ExitText(pdnParser.TextContext context)
Parameters
Type | Name | Description |
---|---|---|
pdnParser.TextContext | 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.