Class robotwarBaseVisitor<Result>
This class provides an empty implementation of IrobotwarVisitor<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.Robotwars
Assembly: Robotwars.dll
Syntax
public class robotwarBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IrobotwarVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAccumexpression(robotwarParser.AccumexpressionContext)
Visit a parse tree produced by accumexpression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAccumexpression(robotwarParser.AccumexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumexpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAccumstatement(robotwarParser.AccumstatementContext)
Visit a parse tree produced by accumstatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAccumstatement(robotwarParser.AccumstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.AccumstatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitArgument(robotwarParser.ArgumentContext)
Visit a parse tree produced by argument().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArgument(robotwarParser.ArgumentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ArgumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComment(robotwarParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(robotwarParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitComparison(robotwarParser.ComparisonContext)
Visit a parse tree produced by comparison().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComparison(robotwarParser.ComparisonContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ComparisonContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCondition(robotwarParser.ConditionContext)
Visit a parse tree produced by condition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCondition(robotwarParser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ConditionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEndsubstatement(robotwarParser.EndsubstatementContext)
Visit a parse tree produced by endsubstatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEndsubstatement(robotwarParser.EndsubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.EndsubstatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(robotwarParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(robotwarParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGosubstatement(robotwarParser.GosubstatementContext)
Visit a parse tree produced by gosubstatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGosubstatement(robotwarParser.GosubstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GosubstatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGotostatement(robotwarParser.GotostatementContext)
Visit a parse tree produced by gotostatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGotostatement(robotwarParser.GotostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.GotostatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIfstatement(robotwarParser.IfstatementContext)
Visit a parse tree produced by ifstatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIfstatement(robotwarParser.IfstatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.IfstatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLabel(robotwarParser.LabelContext)
Visit a parse tree produced by label().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLabel(robotwarParser.LabelContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LabelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(robotwarParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(robotwarParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(robotwarParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(robotwarParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOperation(robotwarParser.OperationContext)
Visit a parse tree produced by operation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOperation(robotwarParser.OperationContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.OperationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProgram(robotwarParser.ProgramContext)
Visit a parse tree produced by program().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProgram(robotwarParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.ProgramContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRegister_(robotwarParser.Register_Context)
Visit a parse tree produced by register_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRegister_(robotwarParser.Register_Context context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.Register_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(robotwarParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(robotwarParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTostatement(robotwarParser.TostatementContext)
Visit a parse tree produced by tostatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTostatement(robotwarParser.TostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.TostatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |