Class bBaseVisitor<Result>
This class provides an empty implementation of IbVisitor<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.B
Assembly: B.dll
Syntax
public class bBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IbVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAssign(bParser.AssignContext)
Visit a parse tree produced by assign().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssign(bParser.AssignContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAssignment(bParser.AssignmentContext)
Visit a parse tree produced by assignment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAssignment(bParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignmentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAutosmt(bParser.AutosmtContext)
Visit a parse tree produced by autosmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAutosmt(bParser.AutosmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AutosmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBinary(bParser.BinaryContext)
Visit a parse tree produced by binary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBinary(bParser.BinaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BinaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlockstmt(bParser.BlockstmtContext)
Visit a parse tree produced by blockstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlockstmt(bParser.BlockstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BlockstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCasestmt(bParser.CasestmtContext)
Visit a parse tree produced by casestmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCasestmt(bParser.CasestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.CasestmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComparison(bParser.ComparisonContext)
Visit a parse tree produced by comparison().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComparison(bParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ComparisonContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConstant(bParser.ConstantContext)
Visit a parse tree produced by constant().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConstant(bParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ConstantContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitDefinition(bParser.DefinitionContext)
Visit a parse tree produced by definition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitDefinition(bParser.DefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.DefinitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(bParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(bParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpressionstmt(bParser.ExpressionstmtContext)
Visit a parse tree produced by expressionstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpressionstmt(bParser.ExpressionstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExternsmt(bParser.ExternsmtContext)
Visit a parse tree produced by externsmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExternsmt(bParser.ExternsmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExternsmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctioninvocation(bParser.FunctioninvocationContext)
Visit a parse tree produced by functioninvocation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctioninvocation(bParser.FunctioninvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctioninvocationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunctionparameters(bParser.FunctionparametersContext)
Visit a parse tree produced by functionparameters().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunctionparameters(bParser.FunctionparametersContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctionparametersContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGotostmt(bParser.GotostmtContext)
Visit a parse tree produced by gotostmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGotostmt(bParser.GotostmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.GotostmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIfstmt(bParser.IfstmtContext)
Visit a parse tree produced by ifstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIfstmt(bParser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IfstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIncdec(bParser.IncdecContext)
Visit a parse tree produced by incdec().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIncdec(bParser.IncdecContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IncdecContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIval(bParser.IvalContext)
Visit a parse tree produced by ival().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIval(bParser.IvalContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IvalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLvalue(bParser.LvalueContext)
Visit a parse tree produced by lvalue().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLvalue(bParser.LvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.LvalueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(bParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(bParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNullstmt(bParser.NullstmtContext)
Visit a parse tree produced by nullstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNullstmt(bParser.NullstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NullstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(bParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(bParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReturnstmt(bParser.ReturnstmtContext)
Visit a parse tree produced by returnstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReturnstmt(bParser.ReturnstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ReturnstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRvalue(bParser.RvalueContext)
Visit a parse tree produced by rvalue().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRvalue(bParser.RvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.RvalueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(bParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(bParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSwitchstmt(bParser.SwitchstmtContext)
Visit a parse tree produced by switchstmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSwitchstmt(bParser.SwitchstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.SwitchstmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTernary(bParser.TernaryContext)
Visit a parse tree produced by ternary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTernary(bParser.TernaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.TernaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnary(bParser.UnaryContext)
Visit a parse tree produced by unary().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnary(bParser.UnaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.UnaryContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitWhilestmt(bParser.WhilestmtContext)
Visit a parse tree produced by whilestmt().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitWhilestmt(bParser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.WhilestmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |