Class rpnBaseVisitor<Result>
This class provides an empty implementation of IrpnVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Rpn
Assembly: Rpn.dll
Syntax
public class rpnBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IrpnVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
| Name | Description |
|---|---|
| Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitExpression(rpnParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitExpression(rpnParser.ExpressionContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.ExpressionContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitOper(rpnParser.OperContext)
Visit a parse tree produced by oper().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitOper(rpnParser.OperContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.OperContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitScientific(rpnParser.ScientificContext)
Visit a parse tree produced by scientific().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitScientific(rpnParser.ScientificContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.ScientificContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitSignedAtom(rpnParser.SignedAtomContext)
Visit a parse tree produced by signedAtom().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitSignedAtom(rpnParser.SignedAtomContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.SignedAtomContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitTerm(rpnParser.TermContext)
Visit a parse tree produced by term().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitTerm(rpnParser.TermContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.TermContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVariable(rpnParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVariable(rpnParser.VariableContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| rpnParser.VariableContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |