Interface IbVisitor<Result>
This interface defines a complete generic visitor for a parse tree produced by bParser.
Namespace: GCore.Antlr.Grammers.B
Assembly: B.dll
Syntax
public interface 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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
Result VisitWhilestmt(bParser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.WhilestmtContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |