Show / Hide Table of Contents

Class karelBaseListener

This class provides an empty implementation of IkarelListener, which can be extended to create a listener which only needs to handle a subset of the available methods.

Inheritance
System.Object
karelBaseListener
Implements
IkarelListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Karel
Assembly: Karel.dll
Syntax
public class karelBaseListener : object, IkarelListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterBlock(karelParser.BlockContext)

Enter a parse tree produced by block().

The default implementation does nothing.

Declaration
public virtual void EnterBlock(karelParser.BlockContext context)
Parameters
Type Name Description
karelParser.BlockContext context

The parse tree.

| Improve this Doc View Source

EnterCondition(karelParser.ConditionContext)

Enter a parse tree produced by condition().

The default implementation does nothing.

Declaration
public virtual void EnterCondition(karelParser.ConditionContext context)
Parameters
Type Name Description
karelParser.ConditionContext context

The parse tree.

| Improve this Doc View Source

EnterConditional(karelParser.ConditionalContext)

Enter a parse tree produced by conditional().

The default implementation does nothing.

Declaration
public virtual void EnterConditional(karelParser.ConditionalContext context)
Parameters
Type Name Description
karelParser.ConditionalContext context

The parse tree.

| Improve this Doc View Source

EnterDefinition(karelParser.DefinitionContext)

Enter a parse tree produced by definition().

The default implementation does nothing.

Declaration
public virtual void EnterDefinition(karelParser.DefinitionContext context)
Parameters
Type Name Description
karelParser.DefinitionContext 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

EnterInstruction(karelParser.InstructionContext)

Enter a parse tree produced by instruction().

The default implementation does nothing.

Declaration
public virtual void EnterInstruction(karelParser.InstructionContext context)
Parameters
Type Name Description
karelParser.InstructionContext context

The parse tree.

| Improve this Doc View Source

EnterIteration(karelParser.IterationContext)

Enter a parse tree produced by iteration().

The default implementation does nothing.

Declaration
public virtual void EnterIteration(karelParser.IterationContext context)
Parameters
Type Name Description
karelParser.IterationContext context

The parse tree.

| Improve this Doc View Source

EnterKarel(karelParser.KarelContext)

Enter a parse tree produced by karel().

The default implementation does nothing.

Declaration
public virtual void EnterKarel(karelParser.KarelContext context)
Parameters
Type Name Description
karelParser.KarelContext context

The parse tree.

| Improve this Doc View Source

EnterLoop(karelParser.LoopContext)

Enter a parse tree produced by loop().

The default implementation does nothing.

Declaration
public virtual void EnterLoop(karelParser.LoopContext context)
Parameters
Type Name Description
karelParser.LoopContext context

The parse tree.

| Improve this Doc View Source

EnterNumber(karelParser.NumberContext)

Enter a parse tree produced by number().

The default implementation does nothing.

Declaration
public virtual void EnterNumber(karelParser.NumberContext context)
Parameters
Type Name Description
karelParser.NumberContext context

The parse tree.

| Improve this Doc View Source

EnterStatement(karelParser.StatementContext)

Enter a parse tree produced by statement().

The default implementation does nothing.

Declaration
public virtual void EnterStatement(karelParser.StatementContext context)
Parameters
Type Name Description
karelParser.StatementContext context

The parse tree.

| Improve this Doc View Source

ExitBlock(karelParser.BlockContext)

Exit a parse tree produced by block().

The default implementation does nothing.

Declaration
public virtual void ExitBlock(karelParser.BlockContext context)
Parameters
Type Name Description
karelParser.BlockContext context

The parse tree.

| Improve this Doc View Source

ExitCondition(karelParser.ConditionContext)

Exit a parse tree produced by condition().

The default implementation does nothing.

Declaration
public virtual void ExitCondition(karelParser.ConditionContext context)
Parameters
Type Name Description
karelParser.ConditionContext context

The parse tree.

| Improve this Doc View Source

ExitConditional(karelParser.ConditionalContext)

Exit a parse tree produced by conditional().

The default implementation does nothing.

Declaration
public virtual void ExitConditional(karelParser.ConditionalContext context)
Parameters
Type Name Description
karelParser.ConditionalContext context

The parse tree.

| Improve this Doc View Source

ExitDefinition(karelParser.DefinitionContext)

Exit a parse tree produced by definition().

The default implementation does nothing.

Declaration
public virtual void ExitDefinition(karelParser.DefinitionContext context)
Parameters
Type Name Description
karelParser.DefinitionContext 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

ExitInstruction(karelParser.InstructionContext)

Exit a parse tree produced by instruction().

The default implementation does nothing.

Declaration
public virtual void ExitInstruction(karelParser.InstructionContext context)
Parameters
Type Name Description
karelParser.InstructionContext context

The parse tree.

| Improve this Doc View Source

ExitIteration(karelParser.IterationContext)

Exit a parse tree produced by iteration().

The default implementation does nothing.

Declaration
public virtual void ExitIteration(karelParser.IterationContext context)
Parameters
Type Name Description
karelParser.IterationContext context

The parse tree.

| Improve this Doc View Source

ExitKarel(karelParser.KarelContext)

Exit a parse tree produced by karel().

The default implementation does nothing.

Declaration
public virtual void ExitKarel(karelParser.KarelContext context)
Parameters
Type Name Description
karelParser.KarelContext context

The parse tree.

| Improve this Doc View Source

ExitLoop(karelParser.LoopContext)

Exit a parse tree produced by loop().

The default implementation does nothing.

Declaration
public virtual void ExitLoop(karelParser.LoopContext context)
Parameters
Type Name Description
karelParser.LoopContext context

The parse tree.

| Improve this Doc View Source

ExitNumber(karelParser.NumberContext)

Exit a parse tree produced by number().

The default implementation does nothing.

Declaration
public virtual void ExitNumber(karelParser.NumberContext context)
Parameters
Type Name Description
karelParser.NumberContext context

The parse tree.

| Improve this Doc View Source

ExitStatement(karelParser.StatementContext)

Exit a parse tree produced by statement().

The default implementation does nothing.

Declaration
public virtual void ExitStatement(karelParser.StatementContext context)
Parameters
Type Name Description
karelParser.StatementContext 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

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