Show / Hide Table of Contents

Class redcodeBaseVisitor<Result>

This class provides an empty implementation of IredcodeVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.

Inheritance
System.Object
redcodeBaseVisitor<Result>
Implements
IredcodeVisitor<Result>
IParseTreeVisitor<Result>
Namespace: GCore.Antlr.Grammers.Redcode
Assembly: Redcode.dll
Syntax
public class redcodeBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IredcodeVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name Description
Result

The return type of the visit operation.

Methods

| Improve this Doc View Source

VisitComment(redcodeParser.CommentContext)

Visit a parse tree produced by comment().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitFile_(redcodeParser.File_Context)

Visit a parse tree produced by file_().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitFile_(redcodeParser.File_Context context)
Parameters
Type Name Description
redcodeParser.File_Context context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitInstruction(redcodeParser.InstructionContext)

Visit a parse tree produced by instruction().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitInstruction(redcodeParser.InstructionContext context)
Parameters
Type Name Description
redcodeParser.InstructionContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitLine(redcodeParser.LineContext)

Visit a parse tree produced by line().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitMmode(redcodeParser.MmodeContext)

Visit a parse tree produced by mmode().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitMmode(redcodeParser.MmodeContext context)
Parameters
Type Name Description
redcodeParser.MmodeContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitModifier(redcodeParser.ModifierContext)

Visit a parse tree produced by modifier().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitModifier(redcodeParser.ModifierContext context)
Parameters
Type Name Description
redcodeParser.ModifierContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitNumber(redcodeParser.NumberContext)

Visit a parse tree produced by number().

The default implementation returns the result of calling on context.

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

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitOpcode(redcodeParser.OpcodeContext)

Visit a parse tree produced by opcode().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitOpcode(redcodeParser.OpcodeContext context)
Parameters
Type Name Description
redcodeParser.OpcodeContext context

The parse tree.

Returns
Type Description
Result

Implements

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