Class robotwarBaseListener
This class provides an empty implementation of IrobotwarListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Robotwars
Assembly: Robotwars.dll
Syntax
public class robotwarBaseListener : object, IrobotwarListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAccumexpression(robotwarParser.AccumexpressionContext)
Enter a parse tree produced by accumexpression().
The default implementation does nothing.
Declaration
public virtual void EnterAccumexpression(robotwarParser.AccumexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumexpressionContext | context | The parse tree. |
EnterAccumstatement(robotwarParser.AccumstatementContext)
Enter a parse tree produced by accumstatement().
The default implementation does nothing.
Declaration
public virtual void EnterAccumstatement(robotwarParser.AccumstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumstatementContext | context | The parse tree. |
EnterArgument(robotwarParser.ArgumentContext)
Enter a parse tree produced by argument().
The default implementation does nothing.
Declaration
public virtual void EnterArgument(robotwarParser.ArgumentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ArgumentContext | context | The parse tree. |
EnterComment(robotwarParser.CommentContext)
Enter a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void EnterComment(robotwarParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.CommentContext | context | The parse tree. |
EnterComparison(robotwarParser.ComparisonContext)
Enter a parse tree produced by comparison().
The default implementation does nothing.
Declaration
public virtual void EnterComparison(robotwarParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ComparisonContext | context | The parse tree. |
EnterCondition(robotwarParser.ConditionContext)
Enter a parse tree produced by condition().
The default implementation does nothing.
Declaration
public virtual void EnterCondition(robotwarParser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ConditionContext | context | The parse tree. |
EnterEndsubstatement(robotwarParser.EndsubstatementContext)
Enter a parse tree produced by endsubstatement().
The default implementation does nothing.
Declaration
public virtual void EnterEndsubstatement(robotwarParser.EndsubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.EndsubstatementContext | 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(robotwarParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(robotwarParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ExpressionContext | context | The parse tree. |
EnterGosubstatement(robotwarParser.GosubstatementContext)
Enter a parse tree produced by gosubstatement().
The default implementation does nothing.
Declaration
public virtual void EnterGosubstatement(robotwarParser.GosubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GosubstatementContext | context | The parse tree. |
EnterGotostatement(robotwarParser.GotostatementContext)
Enter a parse tree produced by gotostatement().
The default implementation does nothing.
Declaration
public virtual void EnterGotostatement(robotwarParser.GotostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GotostatementContext | context | The parse tree. |
EnterIfstatement(robotwarParser.IfstatementContext)
Enter a parse tree produced by ifstatement().
The default implementation does nothing.
Declaration
public virtual void EnterIfstatement(robotwarParser.IfstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.IfstatementContext | context | The parse tree. |
EnterLabel(robotwarParser.LabelContext)
Enter a parse tree produced by label().
The default implementation does nothing.
Declaration
public virtual void EnterLabel(robotwarParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LabelContext | context | The parse tree. |
EnterLine(robotwarParser.LineContext)
Enter a parse tree produced by line().
The default implementation does nothing.
Declaration
public virtual void EnterLine(robotwarParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LineContext | context | The parse tree. |
EnterNumber(robotwarParser.NumberContext)
Enter a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void EnterNumber(robotwarParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.NumberContext | context | The parse tree. |
EnterOperation(robotwarParser.OperationContext)
Enter a parse tree produced by operation().
The default implementation does nothing.
Declaration
public virtual void EnterOperation(robotwarParser.OperationContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.OperationContext | context | The parse tree. |
EnterProgram(robotwarParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(robotwarParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ProgramContext | context | The parse tree. |
EnterRegister_(robotwarParser.Register_Context)
Enter a parse tree produced by register_().
The default implementation does nothing.
Declaration
public virtual void EnterRegister_(robotwarParser.Register_Context context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.Register_Context | context | The parse tree. |
EnterStatement(robotwarParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(robotwarParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.StatementContext | context | The parse tree. |
EnterTostatement(robotwarParser.TostatementContext)
Enter a parse tree produced by tostatement().
The default implementation does nothing.
Declaration
public virtual void EnterTostatement(robotwarParser.TostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.TostatementContext | context | The parse tree. |
ExitAccumexpression(robotwarParser.AccumexpressionContext)
Exit a parse tree produced by accumexpression().
The default implementation does nothing.
Declaration
public virtual void ExitAccumexpression(robotwarParser.AccumexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumexpressionContext | context | The parse tree. |
ExitAccumstatement(robotwarParser.AccumstatementContext)
Exit a parse tree produced by accumstatement().
The default implementation does nothing.
Declaration
public virtual void ExitAccumstatement(robotwarParser.AccumstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumstatementContext | context | The parse tree. |
ExitArgument(robotwarParser.ArgumentContext)
Exit a parse tree produced by argument().
The default implementation does nothing.
Declaration
public virtual void ExitArgument(robotwarParser.ArgumentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ArgumentContext | context | The parse tree. |
ExitComment(robotwarParser.CommentContext)
Exit a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void ExitComment(robotwarParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.CommentContext | context | The parse tree. |
ExitComparison(robotwarParser.ComparisonContext)
Exit a parse tree produced by comparison().
The default implementation does nothing.
Declaration
public virtual void ExitComparison(robotwarParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ComparisonContext | context | The parse tree. |
ExitCondition(robotwarParser.ConditionContext)
Exit a parse tree produced by condition().
The default implementation does nothing.
Declaration
public virtual void ExitCondition(robotwarParser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ConditionContext | context | The parse tree. |
ExitEndsubstatement(robotwarParser.EndsubstatementContext)
Exit a parse tree produced by endsubstatement().
The default implementation does nothing.
Declaration
public virtual void ExitEndsubstatement(robotwarParser.EndsubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.EndsubstatementContext | 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(robotwarParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(robotwarParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ExpressionContext | context | The parse tree. |
ExitGosubstatement(robotwarParser.GosubstatementContext)
Exit a parse tree produced by gosubstatement().
The default implementation does nothing.
Declaration
public virtual void ExitGosubstatement(robotwarParser.GosubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GosubstatementContext | context | The parse tree. |
ExitGotostatement(robotwarParser.GotostatementContext)
Exit a parse tree produced by gotostatement().
The default implementation does nothing.
Declaration
public virtual void ExitGotostatement(robotwarParser.GotostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GotostatementContext | context | The parse tree. |
ExitIfstatement(robotwarParser.IfstatementContext)
Exit a parse tree produced by ifstatement().
The default implementation does nothing.
Declaration
public virtual void ExitIfstatement(robotwarParser.IfstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.IfstatementContext | context | The parse tree. |
ExitLabel(robotwarParser.LabelContext)
Exit a parse tree produced by label().
The default implementation does nothing.
Declaration
public virtual void ExitLabel(robotwarParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LabelContext | context | The parse tree. |
ExitLine(robotwarParser.LineContext)
Exit a parse tree produced by line().
The default implementation does nothing.
Declaration
public virtual void ExitLine(robotwarParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LineContext | context | The parse tree. |
ExitNumber(robotwarParser.NumberContext)
Exit a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void ExitNumber(robotwarParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.NumberContext | context | The parse tree. |
ExitOperation(robotwarParser.OperationContext)
Exit a parse tree produced by operation().
The default implementation does nothing.
Declaration
public virtual void ExitOperation(robotwarParser.OperationContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.OperationContext | context | The parse tree. |
ExitProgram(robotwarParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(robotwarParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ProgramContext | context | The parse tree. |
ExitRegister_(robotwarParser.Register_Context)
Exit a parse tree produced by register_().
The default implementation does nothing.
Declaration
public virtual void ExitRegister_(robotwarParser.Register_Context context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.Register_Context | context | The parse tree. |
ExitStatement(robotwarParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(robotwarParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.StatementContext | context | The parse tree. |
ExitTostatement(robotwarParser.TostatementContext)
Exit a parse tree produced by tostatement().
The default implementation does nothing.
Declaration
public virtual void ExitTostatement(robotwarParser.TostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.TostatementContext | 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.