Show / Hide Table of Contents

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
System.Object
bBaseVisitor<Result>
Implements
IbVisitor<Result>
IParseTreeVisitor<Result>
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 Source

VisitAssign(bParser.AssignContext)

Visit a parse tree produced by assign().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAssign(bParser.AssignContext context)
Parameters
Type Name Description
bParser.AssignContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAssignment(bParser.AssignmentContext)

Visit a parse tree produced by assignment().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAssignment(bParser.AssignmentContext context)
Parameters
Type Name Description
bParser.AssignmentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAutosmt(bParser.AutosmtContext)

Visit a parse tree produced by autosmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAutosmt(bParser.AutosmtContext context)
Parameters
Type Name Description
bParser.AutosmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBinary(bParser.BinaryContext)

Visit a parse tree produced by binary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBinary(bParser.BinaryContext context)
Parameters
Type Name Description
bParser.BinaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitBlockstmt(bParser.BlockstmtContext)

Visit a parse tree produced by blockstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitBlockstmt(bParser.BlockstmtContext context)
Parameters
Type Name Description
bParser.BlockstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCasestmt(bParser.CasestmtContext)

Visit a parse tree produced by casestmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCasestmt(bParser.CasestmtContext context)
Parameters
Type Name Description
bParser.CasestmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitComparison(bParser.ComparisonContext)

Visit a parse tree produced by comparison().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitComparison(bParser.ComparisonContext context)
Parameters
Type Name Description
bParser.ComparisonContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitConstant(bParser.ConstantContext)

Visit a parse tree produced by constant().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitConstant(bParser.ConstantContext context)
Parameters
Type Name Description
bParser.ConstantContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitDefinition(bParser.DefinitionContext)

Visit a parse tree produced by definition().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitDefinition(bParser.DefinitionContext context)
Parameters
Type Name Description
bParser.DefinitionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(bParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpressionstmt(bParser.ExpressionstmtContext)

Visit a parse tree produced by expressionstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExpressionstmt(bParser.ExpressionstmtContext context)
Parameters
Type Name Description
bParser.ExpressionstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExternsmt(bParser.ExternsmtContext)

Visit a parse tree produced by externsmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitExternsmt(bParser.ExternsmtContext context)
Parameters
Type Name Description
bParser.ExternsmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunctioninvocation(bParser.FunctioninvocationContext)

Visit a parse tree produced by functioninvocation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunctioninvocation(bParser.FunctioninvocationContext context)
Parameters
Type Name Description
bParser.FunctioninvocationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFunctionparameters(bParser.FunctionparametersContext)

Visit a parse tree produced by functionparameters().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFunctionparameters(bParser.FunctionparametersContext context)
Parameters
Type Name Description
bParser.FunctionparametersContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGotostmt(bParser.GotostmtContext)

Visit a parse tree produced by gotostmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGotostmt(bParser.GotostmtContext context)
Parameters
Type Name Description
bParser.GotostmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIfstmt(bParser.IfstmtContext)

Visit a parse tree produced by ifstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIfstmt(bParser.IfstmtContext context)
Parameters
Type Name Description
bParser.IfstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIncdec(bParser.IncdecContext)

Visit a parse tree produced by incdec().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIncdec(bParser.IncdecContext context)
Parameters
Type Name Description
bParser.IncdecContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIval(bParser.IvalContext)

Visit a parse tree produced by ival().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIval(bParser.IvalContext context)
Parameters
Type Name Description
bParser.IvalContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLvalue(bParser.LvalueContext)

Visit a parse tree produced by lvalue().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLvalue(bParser.LvalueContext context)
Parameters
Type Name Description
bParser.LvalueContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitName(bParser.NameContext)

Visit a parse tree produced by name().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitName(bParser.NameContext context)
Parameters
Type Name Description
bParser.NameContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNullstmt(bParser.NullstmtContext)

Visit a parse tree produced by nullstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNullstmt(bParser.NullstmtContext context)
Parameters
Type Name Description
bParser.NullstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram(bParser.ProgramContext)

Visit a parse tree produced by program().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitProgram(bParser.ProgramContext context)
Parameters
Type Name Description
bParser.ProgramContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitReturnstmt(bParser.ReturnstmtContext)

Visit a parse tree produced by returnstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitReturnstmt(bParser.ReturnstmtContext context)
Parameters
Type Name Description
bParser.ReturnstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRvalue(bParser.RvalueContext)

Visit a parse tree produced by rvalue().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitRvalue(bParser.RvalueContext context)
Parameters
Type Name Description
bParser.RvalueContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitStatement(bParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitStatement(bParser.StatementContext context)
Parameters
Type Name Description
bParser.StatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitSwitchstmt(bParser.SwitchstmtContext)

Visit a parse tree produced by switchstmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitSwitchstmt(bParser.SwitchstmtContext context)
Parameters
Type Name Description
bParser.SwitchstmtContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTernary(bParser.TernaryContext)

Visit a parse tree produced by ternary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTernary(bParser.TernaryContext context)
Parameters
Type Name Description
bParser.TernaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitUnary(bParser.UnaryContext)

Visit a parse tree produced by unary().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitUnary(bParser.UnaryContext context)
Parameters
Type Name Description
bParser.UnaryContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitWhilestmt(bParser.WhilestmtContext)

Visit a parse tree produced by whilestmt().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitWhilestmt(bParser.WhilestmtContext context)
Parameters
Type Name Description
bParser.WhilestmtContext context

The parse tree.

Returns
Type Description
Result

Implements

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