Class arithmeticBaseVisitor<Result>
This class provides an empty implementation of IarithmeticVisitor<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.Arithmetic
Assembly: Arithmetic.dll
Syntax
public class arithmeticBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IarithmeticVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAtom(arithmeticParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(arithmeticParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEquation(arithmeticParser.EquationContext)
Visit a parse tree produced by equation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEquation(arithmeticParser.EquationContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.EquationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(arithmeticParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(arithmeticParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_(arithmeticParser.File_Context)
Visit a parse tree produced by file_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_(arithmeticParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.File_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRelop(arithmeticParser.RelopContext)
Visit a parse tree produced by relop().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRelop(arithmeticParser.RelopContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.RelopContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitScientific(arithmeticParser.ScientificContext)
Visit a parse tree produced by scientific().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitScientific(arithmeticParser.ScientificContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.ScientificContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariable(arithmeticParser.VariableContext)
Visit a parse tree produced by variable().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariable(arithmeticParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
arithmeticParser.VariableContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |