Show / Hide Table of Contents

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
System.Object
redcodeBaseListener
Implements
IredcodeListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Redcode
Assembly: Redcode.dll
Syntax
public class redcodeBaseListener : object, IredcodeListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterComment(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IredcodeListener
Antlr4.Runtime.Tree.IParseTreeListener
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX