Class tinycBaseListener
This class provides an empty implementation of ItinycListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Tinyc
Assembly: Tinyc.dll
Syntax
public class tinycBaseListener : object, ItinycListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterEveryRule(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.
EnterExpr(tinycParser.ExprContext)
Enter a parse tree produced by expr().
The default implementation does nothing.
Declaration
public virtual void EnterExpr(tinycParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.ExprContext | context | The parse tree. |
EnterId_(tinycParser.Id_Context)
Enter a parse tree produced by id_().
The default implementation does nothing.
Declaration
public virtual void EnterId_(tinycParser.Id_Context context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Id_Context | context | The parse tree. |
EnterInteger(tinycParser.IntegerContext)
Enter a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void EnterInteger(tinycParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.IntegerContext | context | The parse tree. |
EnterParen_expr(tinycParser.Paren_exprContext)
Enter a parse tree produced by paren_expr().
The default implementation does nothing.
Declaration
public virtual void EnterParen_expr(tinycParser.Paren_exprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Paren_exprContext | context | The parse tree. |
EnterProgram(tinycParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(tinycParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.ProgramContext | context | The parse tree. |
EnterStatement(tinycParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(tinycParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.StatementContext | context | The parse tree. |
EnterSum_(tinycParser.Sum_Context)
Enter a parse tree produced by sum_().
The default implementation does nothing.
Declaration
public virtual void EnterSum_(tinycParser.Sum_Context context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Sum_Context | context | The parse tree. |
EnterTerm(tinycParser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(tinycParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.TermContext | context | The parse tree. |
EnterTest(tinycParser.TestContext)
Enter a parse tree produced by test().
The default implementation does nothing.
Declaration
public virtual void EnterTest(tinycParser.TestContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.TestContext | 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.
ExitExpr(tinycParser.ExprContext)
Exit a parse tree produced by expr().
The default implementation does nothing.
Declaration
public virtual void ExitExpr(tinycParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.ExprContext | context | The parse tree. |
ExitId_(tinycParser.Id_Context)
Exit a parse tree produced by id_().
The default implementation does nothing.
Declaration
public virtual void ExitId_(tinycParser.Id_Context context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Id_Context | context | The parse tree. |
ExitInteger(tinycParser.IntegerContext)
Exit a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void ExitInteger(tinycParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.IntegerContext | context | The parse tree. |
ExitParen_expr(tinycParser.Paren_exprContext)
Exit a parse tree produced by paren_expr().
The default implementation does nothing.
Declaration
public virtual void ExitParen_expr(tinycParser.Paren_exprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Paren_exprContext | context | The parse tree. |
ExitProgram(tinycParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(tinycParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.ProgramContext | context | The parse tree. |
ExitStatement(tinycParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(tinycParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.StatementContext | context | The parse tree. |
ExitSum_(tinycParser.Sum_Context)
Exit a parse tree produced by sum_().
The default implementation does nothing.
Declaration
public virtual void ExitSum_(tinycParser.Sum_Context context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.Sum_Context | context | The parse tree. |
ExitTerm(tinycParser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(tinycParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.TermContext | context | The parse tree. |
ExitTest(tinycParser.TestContext)
Exit a parse tree produced by test().
The default implementation does nothing.
Declaration
public virtual void ExitTest(tinycParser.TestContext context)
Parameters
Type | Name | Description |
---|---|---|
tinycParser.TestContext | 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.