Show / Hide Table of Contents

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
System.Object
robotwarBaseVisitor<Result>
Implements
IrobotwarVisitor<Result>
IParseTreeVisitor<Result>
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 Source

VisitAccumexpression(robotwarParser.AccumexpressionContext)

Visit a parse tree produced by accumexpression().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAccumexpression(robotwarParser.AccumexpressionContext context)
Parameters
Type Name Description
robotwarParser.AccumexpressionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitAccumstatement(robotwarParser.AccumstatementContext)

Visit a parse tree produced by accumstatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitAccumstatement(robotwarParser.AccumstatementContext context)
Parameters
Type Name Description
robotwarParser.AccumstatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitArgument(robotwarParser.ArgumentContext)

Visit a parse tree produced by argument().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArgument(robotwarParser.ArgumentContext context)
Parameters
Type Name Description
robotwarParser.ArgumentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitComment(robotwarParser.CommentContext)

Visit a parse tree produced by comment().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitComment(robotwarParser.CommentContext context)
Parameters
Type Name Description
robotwarParser.CommentContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitComparison(robotwarParser.ComparisonContext)

Visit a parse tree produced by comparison().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitCondition(robotwarParser.ConditionContext)

Visit a parse tree produced by condition().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitCondition(robotwarParser.ConditionContext context)
Parameters
Type Name Description
robotwarParser.ConditionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitEndsubstatement(robotwarParser.EndsubstatementContext)

Visit a parse tree produced by endsubstatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitEndsubstatement(robotwarParser.EndsubstatementContext context)
Parameters
Type Name Description
robotwarParser.EndsubstatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitExpression(robotwarParser.ExpressionContext)

Visit a parse tree produced by expression().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGosubstatement(robotwarParser.GosubstatementContext)

Visit a parse tree produced by gosubstatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGosubstatement(robotwarParser.GosubstatementContext context)
Parameters
Type Name Description
robotwarParser.GosubstatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitGotostatement(robotwarParser.GotostatementContext)

Visit a parse tree produced by gotostatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitGotostatement(robotwarParser.GotostatementContext context)
Parameters
Type Name Description
robotwarParser.GotostatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitIfstatement(robotwarParser.IfstatementContext)

Visit a parse tree produced by ifstatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitIfstatement(robotwarParser.IfstatementContext context)
Parameters
Type Name Description
robotwarParser.IfstatementContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLabel(robotwarParser.LabelContext)

Visit a parse tree produced by label().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLabel(robotwarParser.LabelContext context)
Parameters
Type Name Description
robotwarParser.LabelContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLine(robotwarParser.LineContext)

Visit a parse tree produced by line().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitLine(robotwarParser.LineContext context)
Parameters
Type Name Description
robotwarParser.LineContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(robotwarParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitNumber(robotwarParser.NumberContext context)
Parameters
Type Name Description
robotwarParser.NumberContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOperation(robotwarParser.OperationContext)

Visit a parse tree produced by operation().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOperation(robotwarParser.OperationContext context)
Parameters
Type Name Description
robotwarParser.OperationContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitProgram(robotwarParser.ProgramContext)

Visit a parse tree produced by program().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitRegister_(robotwarParser.Register_Context)

Visit a parse tree produced by register_().

The default implementation returns the result of calling on 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
| Improve this Doc View Source

VisitStatement(robotwarParser.StatementContext)

Visit a parse tree produced by statement().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitTostatement(robotwarParser.TostatementContext)

Visit a parse tree produced by tostatement().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitTostatement(robotwarParser.TostatementContext context)
Parameters
Type Name Description
robotwarParser.TostatementContext context

The parse tree.

Returns
Type Description
Result

Implements

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