Interface IrobotwarVisitor<Result>
This interface defines a complete generic visitor for a parse tree produced by robotwarParser.
Namespace: GCore.Antlr.Grammers.Robotwars
Assembly: Robotwars.dll
Syntax
public interface 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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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().
Declaration
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_().
Declaration
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().
Declaration
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().
Declaration
Result VisitTostatement(robotwarParser.TostatementContext context)
Parameters
Type | Name | Description |
---|---|---|
robotwarParser.TostatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |