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