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
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 SourceVisitComment(redcodeParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(redcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_(redcodeParser.File_Context)
Visit a parse tree produced by file_().
The default implementation returns the result of calling 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 |
VisitInstruction(redcodeParser.InstructionContext)
Visit a parse tree produced by instruction().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInstruction(redcodeParser.InstructionContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.InstructionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(redcodeParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(redcodeParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMmode(redcodeParser.MmodeContext)
Visit a parse tree produced by mmode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMmode(redcodeParser.MmodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.MmodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitModifier(redcodeParser.ModifierContext)
Visit a parse tree produced by modifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitModifier(redcodeParser.ModifierContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.ModifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNumber(redcodeParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumber(redcodeParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.NumberContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpcode(redcodeParser.OpcodeContext)
Visit a parse tree produced by opcode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpcode(redcodeParser.OpcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.OpcodeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |