Class MuParserBaseVisitor<Result>
This class provides an empty implementation of IMuParserVisitor<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.Muparser
Assembly: Muparser.dll
Syntax
public class MuParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IMuParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAddSubExpr(MuParserParser.AddSubExprContext)
Visit a parse tree produced by the addSubExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAddSubExpr(MuParserParser.AddSubExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.AddSubExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAndExpr(MuParserParser.AndExprContext)
Visit a parse tree produced by the andExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAndExpr(MuParserParser.AndExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.AndExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignExpr(MuParserParser.AssignExprContext)
Visit a parse tree produced by the assignExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignExpr(MuParserParser.AssignExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.AssignExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtomExpr(MuParserParser.AtomExprContext)
Visit a parse tree produced by the atomExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtomExpr(MuParserParser.AtomExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.AtomExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBooleanAtom(MuParserParser.BooleanAtomContext)
Visit a parse tree produced by the booleanAtom
labeled alternative in atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBooleanAtom(MuParserParser.BooleanAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.BooleanAtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEqualityExpr(MuParserParser.EqualityExprContext)
Visit a parse tree produced by the equalityExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEqualityExpr(MuParserParser.EqualityExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.EqualityExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionExpr(MuParserParser.FunctionExprContext)
Visit a parse tree produced by the functionExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionExpr(MuParserParser.FunctionExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.FunctionExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionMultiExpr(MuParserParser.FunctionMultiExprContext)
Visit a parse tree produced by the functionMultiExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionMultiExpr(MuParserParser.FunctionMultiExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.FunctionMultiExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdAtom(MuParserParser.IdAtomContext)
Visit a parse tree produced by the idAtom
labeled alternative in atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdAtom(MuParserParser.IdAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.IdAtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIteExpr(MuParserParser.IteExprContext)
Visit a parse tree produced by the iteExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIteExpr(MuParserParser.IteExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.IteExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMulDivExpr(MuParserParser.MulDivExprContext)
Visit a parse tree produced by the mulDivExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMulDivExpr(MuParserParser.MulDivExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.MulDivExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumberAtom(MuParserParser.NumberAtomContext)
Visit a parse tree produced by the numberAtom
labeled alternative in atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumberAtom(MuParserParser.NumberAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.NumberAtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOrExpr(MuParserParser.OrExprContext)
Visit a parse tree produced by the orExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOrExpr(MuParserParser.OrExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.OrExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitParExpr(MuParserParser.ParExprContext)
Visit a parse tree produced by the parExpr
labeled alternative in atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitParExpr(MuParserParser.ParExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.ParExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPowExpr(MuParserParser.PowExprContext)
Visit a parse tree produced by the powExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPowExpr(MuParserParser.PowExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.PowExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPredefinedConstantAtom(MuParserParser.PredefinedConstantAtomContext)
Visit a parse tree produced by the predefinedConstantAtom
labeled alternative in atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPredefinedConstantAtom(MuParserParser.PredefinedConstantAtomContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.PredefinedConstantAtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgExpr(MuParserParser.ProgExprContext)
Visit a parse tree produced by the progExpr
labeled alternative in prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgExpr(MuParserParser.ProgExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.ProgExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelationalExpr(MuParserParser.RelationalExprContext)
Visit a parse tree produced by the relationalExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelationalExpr(MuParserParser.RelationalExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.RelationalExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnaryMinusExpr(MuParserParser.UnaryMinusExprContext)
Visit a parse tree produced by the unaryMinusExpr
labeled alternative in expr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnaryMinusExpr(MuParserParser.UnaryMinusExprContext context)
Parameters
Type | Name | Description |
---|---|---|
MuParserParser.UnaryMinusExprContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |