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
Namespace: GCore.Antlr.Grammers.Karel
Assembly: Karel.dll
Syntax
public class karelBaseListener : object, IkarelListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterBlock(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. |
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. |
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. |
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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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.