Show / Hide Table of Contents

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
System.Object
rpnBaseVisitor<Result>
Implements
IrpnVisitor<Result>
IParseTreeVisitor<Result>
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 Source

VisitExpression(rpnParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpression(rpnParser.ExpressionContext context)
Parameters
Type Name Description
rpnParser.ExpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOper(rpnParser.OperContext)

Visit a parse tree produced by oper().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOper(rpnParser.OperContext context)
Parameters
Type Name Description
rpnParser.OperContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitScientific(rpnParser.ScientificContext)

Visit a parse tree produced by scientific().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitScientific(rpnParser.ScientificContext context)
Parameters
Type Name Description
rpnParser.ScientificContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSignedAtom(rpnParser.SignedAtomContext)

Visit a parse tree produced by signedAtom().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSignedAtom(rpnParser.SignedAtomContext context)
Parameters
Type Name Description
rpnParser.SignedAtomContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTerm(rpnParser.TermContext)

Visit a parse tree produced by term().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTerm(rpnParser.TermContext context)
Parameters
Type Name Description
rpnParser.TermContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitVariable(rpnParser.VariableContext)

Visit a parse tree produced by variable().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitVariable(rpnParser.VariableContext context)
Parameters
Type Name Description
rpnParser.VariableContext context

The parse tree.

Returns
Type Description
Result

Implements

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