Class rpnBaseListener
This class provides an empty implementation of IrpnListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Rpn
Assembly: Rpn.dll
Syntax
public class rpnBaseListener : object, IrpnListener, 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.
EnterExpression(rpnParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(rpnParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.ExpressionContext | context | The parse tree. |
EnterOper(rpnParser.OperContext)
Enter a parse tree produced by oper().
The default implementation does nothing.
Declaration
public virtual void EnterOper(rpnParser.OperContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.OperContext | context | The parse tree. |
EnterScientific(rpnParser.ScientificContext)
Enter a parse tree produced by scientific().
The default implementation does nothing.
Declaration
public virtual void EnterScientific(rpnParser.ScientificContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.ScientificContext | context | The parse tree. |
EnterSignedAtom(rpnParser.SignedAtomContext)
Enter a parse tree produced by signedAtom().
The default implementation does nothing.
Declaration
public virtual void EnterSignedAtom(rpnParser.SignedAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.SignedAtomContext | context | The parse tree. |
EnterTerm(rpnParser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(rpnParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.TermContext | context | The parse tree. |
EnterVariable(rpnParser.VariableContext)
Enter a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void EnterVariable(rpnParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.VariableContext | 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.
ExitExpression(rpnParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(rpnParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.ExpressionContext | context | The parse tree. |
ExitOper(rpnParser.OperContext)
Exit a parse tree produced by oper().
The default implementation does nothing.
Declaration
public virtual void ExitOper(rpnParser.OperContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.OperContext | context | The parse tree. |
ExitScientific(rpnParser.ScientificContext)
Exit a parse tree produced by scientific().
The default implementation does nothing.
Declaration
public virtual void ExitScientific(rpnParser.ScientificContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.ScientificContext | context | The parse tree. |
ExitSignedAtom(rpnParser.SignedAtomContext)
Exit a parse tree produced by signedAtom().
The default implementation does nothing.
Declaration
public virtual void ExitSignedAtom(rpnParser.SignedAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.SignedAtomContext | context | The parse tree. |
ExitTerm(rpnParser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(rpnParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.TermContext | context | The parse tree. |
ExitVariable(rpnParser.VariableContext)
Exit a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void ExitVariable(rpnParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
rpnParser.VariableContext | 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.