Class bBaseListener
This class provides an empty implementation of IbListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.B
Assembly: B.dll
Syntax
public class bBaseListener : object, IbListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAssign(bParser.AssignContext)
Enter a parse tree produced by assign().
The default implementation does nothing.
Declaration
public virtual void EnterAssign(bParser.AssignContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignContext | context | The parse tree. |
EnterAssignment(bParser.AssignmentContext)
Enter a parse tree produced by assignment().
The default implementation does nothing.
Declaration
public virtual void EnterAssignment(bParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignmentContext | context | The parse tree. |
EnterAutosmt(bParser.AutosmtContext)
Enter a parse tree produced by autosmt().
The default implementation does nothing.
Declaration
public virtual void EnterAutosmt(bParser.AutosmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AutosmtContext | context | The parse tree. |
EnterBinary(bParser.BinaryContext)
Enter a parse tree produced by binary().
The default implementation does nothing.
Declaration
public virtual void EnterBinary(bParser.BinaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BinaryContext | context | The parse tree. |
EnterBlockstmt(bParser.BlockstmtContext)
Enter a parse tree produced by blockstmt().
The default implementation does nothing.
Declaration
public virtual void EnterBlockstmt(bParser.BlockstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BlockstmtContext | context | The parse tree. |
EnterCasestmt(bParser.CasestmtContext)
Enter a parse tree produced by casestmt().
The default implementation does nothing.
Declaration
public virtual void EnterCasestmt(bParser.CasestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.CasestmtContext | context | The parse tree. |
EnterComparison(bParser.ComparisonContext)
Enter a parse tree produced by comparison().
The default implementation does nothing.
Declaration
public virtual void EnterComparison(bParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ComparisonContext | context | The parse tree. |
EnterConstant(bParser.ConstantContext)
Enter a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void EnterConstant(bParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ConstantContext | context | The parse tree. |
EnterDefinition(bParser.DefinitionContext)
Enter a parse tree produced by definition().
The default implementation does nothing.
Declaration
public virtual void EnterDefinition(bParser.DefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.DefinitionContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterExpression(bParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(bParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionContext | context | The parse tree. |
EnterExpressionstmt(bParser.ExpressionstmtContext)
Enter a parse tree produced by expressionstmt().
The default implementation does nothing.
Declaration
public virtual void EnterExpressionstmt(bParser.ExpressionstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionstmtContext | context | The parse tree. |
EnterExternsmt(bParser.ExternsmtContext)
Enter a parse tree produced by externsmt().
The default implementation does nothing.
Declaration
public virtual void EnterExternsmt(bParser.ExternsmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExternsmtContext | context | The parse tree. |
EnterFunctioninvocation(bParser.FunctioninvocationContext)
Enter a parse tree produced by functioninvocation().
The default implementation does nothing.
Declaration
public virtual void EnterFunctioninvocation(bParser.FunctioninvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctioninvocationContext | context | The parse tree. |
EnterFunctionparameters(bParser.FunctionparametersContext)
Enter a parse tree produced by functionparameters().
The default implementation does nothing.
Declaration
public virtual void EnterFunctionparameters(bParser.FunctionparametersContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctionparametersContext | context | The parse tree. |
EnterGotostmt(bParser.GotostmtContext)
Enter a parse tree produced by gotostmt().
The default implementation does nothing.
Declaration
public virtual void EnterGotostmt(bParser.GotostmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.GotostmtContext | context | The parse tree. |
EnterIfstmt(bParser.IfstmtContext)
Enter a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void EnterIfstmt(bParser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IfstmtContext | context | The parse tree. |
EnterIncdec(bParser.IncdecContext)
Enter a parse tree produced by incdec().
The default implementation does nothing.
Declaration
public virtual void EnterIncdec(bParser.IncdecContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IncdecContext | context | The parse tree. |
EnterIval(bParser.IvalContext)
Enter a parse tree produced by ival().
The default implementation does nothing.
Declaration
public virtual void EnterIval(bParser.IvalContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IvalContext | context | The parse tree. |
EnterLvalue(bParser.LvalueContext)
Enter a parse tree produced by lvalue().
The default implementation does nothing.
Declaration
public virtual void EnterLvalue(bParser.LvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.LvalueContext | context | The parse tree. |
EnterName(bParser.NameContext)
Enter a parse tree produced by name().
The default implementation does nothing.
Declaration
public virtual void EnterName(bParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NameContext | context | The parse tree. |
EnterNullstmt(bParser.NullstmtContext)
Enter a parse tree produced by nullstmt().
The default implementation does nothing.
Declaration
public virtual void EnterNullstmt(bParser.NullstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NullstmtContext | context | The parse tree. |
EnterProgram(bParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(bParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ProgramContext | context | The parse tree. |
EnterReturnstmt(bParser.ReturnstmtContext)
Enter a parse tree produced by returnstmt().
The default implementation does nothing.
Declaration
public virtual void EnterReturnstmt(bParser.ReturnstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ReturnstmtContext | context | The parse tree. |
EnterRvalue(bParser.RvalueContext)
Enter a parse tree produced by rvalue().
The default implementation does nothing.
Declaration
public virtual void EnterRvalue(bParser.RvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.RvalueContext | context | The parse tree. |
EnterStatement(bParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(bParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.StatementContext | context | The parse tree. |
EnterSwitchstmt(bParser.SwitchstmtContext)
Enter a parse tree produced by switchstmt().
The default implementation does nothing.
Declaration
public virtual void EnterSwitchstmt(bParser.SwitchstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.SwitchstmtContext | context | The parse tree. |
EnterTernary(bParser.TernaryContext)
Enter a parse tree produced by ternary().
The default implementation does nothing.
Declaration
public virtual void EnterTernary(bParser.TernaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.TernaryContext | context | The parse tree. |
EnterUnary(bParser.UnaryContext)
Enter a parse tree produced by unary().
The default implementation does nothing.
Declaration
public virtual void EnterUnary(bParser.UnaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.UnaryContext | context | The parse tree. |
EnterWhilestmt(bParser.WhilestmtContext)
Enter a parse tree produced by whilestmt().
The default implementation does nothing.
Declaration
public virtual void EnterWhilestmt(bParser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.WhilestmtContext | context | The parse tree. |
ExitAssign(bParser.AssignContext)
Exit a parse tree produced by assign().
The default implementation does nothing.
Declaration
public virtual void ExitAssign(bParser.AssignContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignContext | context | The parse tree. |
ExitAssignment(bParser.AssignmentContext)
Exit a parse tree produced by assignment().
The default implementation does nothing.
Declaration
public virtual void ExitAssignment(bParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AssignmentContext | context | The parse tree. |
ExitAutosmt(bParser.AutosmtContext)
Exit a parse tree produced by autosmt().
The default implementation does nothing.
Declaration
public virtual void ExitAutosmt(bParser.AutosmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.AutosmtContext | context | The parse tree. |
ExitBinary(bParser.BinaryContext)
Exit a parse tree produced by binary().
The default implementation does nothing.
Declaration
public virtual void ExitBinary(bParser.BinaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BinaryContext | context | The parse tree. |
ExitBlockstmt(bParser.BlockstmtContext)
Exit a parse tree produced by blockstmt().
The default implementation does nothing.
Declaration
public virtual void ExitBlockstmt(bParser.BlockstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.BlockstmtContext | context | The parse tree. |
ExitCasestmt(bParser.CasestmtContext)
Exit a parse tree produced by casestmt().
The default implementation does nothing.
Declaration
public virtual void ExitCasestmt(bParser.CasestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.CasestmtContext | context | The parse tree. |
ExitComparison(bParser.ComparisonContext)
Exit a parse tree produced by comparison().
The default implementation does nothing.
Declaration
public virtual void ExitComparison(bParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ComparisonContext | context | The parse tree. |
ExitConstant(bParser.ConstantContext)
Exit a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void ExitConstant(bParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ConstantContext | context | The parse tree. |
ExitDefinition(bParser.DefinitionContext)
Exit a parse tree produced by definition().
The default implementation does nothing.
Declaration
public virtual void ExitDefinition(bParser.DefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.DefinitionContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitExpression(bParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(bParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionContext | context | The parse tree. |
ExitExpressionstmt(bParser.ExpressionstmtContext)
Exit a parse tree produced by expressionstmt().
The default implementation does nothing.
Declaration
public virtual void ExitExpressionstmt(bParser.ExpressionstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExpressionstmtContext | context | The parse tree. |
ExitExternsmt(bParser.ExternsmtContext)
Exit a parse tree produced by externsmt().
The default implementation does nothing.
Declaration
public virtual void ExitExternsmt(bParser.ExternsmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ExternsmtContext | context | The parse tree. |
ExitFunctioninvocation(bParser.FunctioninvocationContext)
Exit a parse tree produced by functioninvocation().
The default implementation does nothing.
Declaration
public virtual void ExitFunctioninvocation(bParser.FunctioninvocationContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctioninvocationContext | context | The parse tree. |
ExitFunctionparameters(bParser.FunctionparametersContext)
Exit a parse tree produced by functionparameters().
The default implementation does nothing.
Declaration
public virtual void ExitFunctionparameters(bParser.FunctionparametersContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.FunctionparametersContext | context | The parse tree. |
ExitGotostmt(bParser.GotostmtContext)
Exit a parse tree produced by gotostmt().
The default implementation does nothing.
Declaration
public virtual void ExitGotostmt(bParser.GotostmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.GotostmtContext | context | The parse tree. |
ExitIfstmt(bParser.IfstmtContext)
Exit a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void ExitIfstmt(bParser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IfstmtContext | context | The parse tree. |
ExitIncdec(bParser.IncdecContext)
Exit a parse tree produced by incdec().
The default implementation does nothing.
Declaration
public virtual void ExitIncdec(bParser.IncdecContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IncdecContext | context | The parse tree. |
ExitIval(bParser.IvalContext)
Exit a parse tree produced by ival().
The default implementation does nothing.
Declaration
public virtual void ExitIval(bParser.IvalContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.IvalContext | context | The parse tree. |
ExitLvalue(bParser.LvalueContext)
Exit a parse tree produced by lvalue().
The default implementation does nothing.
Declaration
public virtual void ExitLvalue(bParser.LvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.LvalueContext | context | The parse tree. |
ExitName(bParser.NameContext)
Exit a parse tree produced by name().
The default implementation does nothing.
Declaration
public virtual void ExitName(bParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NameContext | context | The parse tree. |
ExitNullstmt(bParser.NullstmtContext)
Exit a parse tree produced by nullstmt().
The default implementation does nothing.
Declaration
public virtual void ExitNullstmt(bParser.NullstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.NullstmtContext | context | The parse tree. |
ExitProgram(bParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(bParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ProgramContext | context | The parse tree. |
ExitReturnstmt(bParser.ReturnstmtContext)
Exit a parse tree produced by returnstmt().
The default implementation does nothing.
Declaration
public virtual void ExitReturnstmt(bParser.ReturnstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.ReturnstmtContext | context | The parse tree. |
ExitRvalue(bParser.RvalueContext)
Exit a parse tree produced by rvalue().
The default implementation does nothing.
Declaration
public virtual void ExitRvalue(bParser.RvalueContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.RvalueContext | context | The parse tree. |
ExitStatement(bParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(bParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.StatementContext | context | The parse tree. |
ExitSwitchstmt(bParser.SwitchstmtContext)
Exit a parse tree produced by switchstmt().
The default implementation does nothing.
Declaration
public virtual void ExitSwitchstmt(bParser.SwitchstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.SwitchstmtContext | context | The parse tree. |
ExitTernary(bParser.TernaryContext)
Exit a parse tree produced by ternary().
The default implementation does nothing.
Declaration
public virtual void ExitTernary(bParser.TernaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.TernaryContext | context | The parse tree. |
ExitUnary(bParser.UnaryContext)
Exit a parse tree produced by unary().
The default implementation does nothing.
Declaration
public virtual void ExitUnary(bParser.UnaryContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.UnaryContext | context | The parse tree. |
ExitWhilestmt(bParser.WhilestmtContext)
Exit a parse tree produced by whilestmt().
The default implementation does nothing.
Declaration
public virtual void ExitWhilestmt(bParser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
bParser.WhilestmtContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.