Class redcodeBaseListener
This class provides an empty implementation of IredcodeListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Redcode
Assembly: Redcode.dll
Syntax
public class redcodeBaseListener : object, IredcodeListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterComment(redcodeParser.CommentContext)
Enter a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void EnterComment(redcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.CommentContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterFile_(redcodeParser.File_Context)
Enter a parse tree produced by file_().
The default implementation does nothing.
Declaration
public virtual void EnterFile_(redcodeParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.File_Context | context | The parse tree. |
EnterInstruction(redcodeParser.InstructionContext)
Enter a parse tree produced by instruction().
The default implementation does nothing.
Declaration
public virtual void EnterInstruction(redcodeParser.InstructionContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.InstructionContext | context | The parse tree. |
EnterLine(redcodeParser.LineContext)
Enter a parse tree produced by line().
The default implementation does nothing.
Declaration
public virtual void EnterLine(redcodeParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.LineContext | context | The parse tree. |
EnterMmode(redcodeParser.MmodeContext)
Enter a parse tree produced by mmode().
The default implementation does nothing.
Declaration
public virtual void EnterMmode(redcodeParser.MmodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.MmodeContext | context | The parse tree. |
EnterModifier(redcodeParser.ModifierContext)
Enter a parse tree produced by modifier().
The default implementation does nothing.
Declaration
public virtual void EnterModifier(redcodeParser.ModifierContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.ModifierContext | context | The parse tree. |
EnterNumber(redcodeParser.NumberContext)
Enter a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void EnterNumber(redcodeParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.NumberContext | context | The parse tree. |
EnterOpcode(redcodeParser.OpcodeContext)
Enter a parse tree produced by opcode().
The default implementation does nothing.
Declaration
public virtual void EnterOpcode(redcodeParser.OpcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.OpcodeContext | context | The parse tree. |
ExitComment(redcodeParser.CommentContext)
Exit a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void ExitComment(redcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.CommentContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitFile_(redcodeParser.File_Context)
Exit a parse tree produced by file_().
The default implementation does nothing.
Declaration
public virtual void ExitFile_(redcodeParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.File_Context | context | The parse tree. |
ExitInstruction(redcodeParser.InstructionContext)
Exit a parse tree produced by instruction().
The default implementation does nothing.
Declaration
public virtual void ExitInstruction(redcodeParser.InstructionContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.InstructionContext | context | The parse tree. |
ExitLine(redcodeParser.LineContext)
Exit a parse tree produced by line().
The default implementation does nothing.
Declaration
public virtual void ExitLine(redcodeParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.LineContext | context | The parse tree. |
ExitMmode(redcodeParser.MmodeContext)
Exit a parse tree produced by mmode().
The default implementation does nothing.
Declaration
public virtual void ExitMmode(redcodeParser.MmodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.MmodeContext | context | The parse tree. |
ExitModifier(redcodeParser.ModifierContext)
Exit a parse tree produced by modifier().
The default implementation does nothing.
Declaration
public virtual void ExitModifier(redcodeParser.ModifierContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.ModifierContext | context | The parse tree. |
ExitNumber(redcodeParser.NumberContext)
Exit a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void ExitNumber(redcodeParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.NumberContext | context | The parse tree. |
ExitOpcode(redcodeParser.OpcodeContext)
Exit a parse tree produced by opcode().
The default implementation does nothing.
Declaration
public virtual void ExitOpcode(redcodeParser.OpcodeContext context)
Parameters
Type | Name | Description |
---|---|---|
redcodeParser.OpcodeContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.