Class tinyBaseListener
This class provides an empty implementation of ItinyListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Tiny
Assembly: Tiny.dll
Syntax
public class tinyBaseListener : object, ItinyListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAssign_stmt(tinyParser.Assign_stmtContext)
Enter a parse tree produced by assign_stmt().
The default implementation does nothing.
Declaration
public virtual void EnterAssign_stmt(tinyParser.Assign_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Assign_stmtContext | 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.
EnterExpr(tinyParser.ExprContext)
Enter a parse tree produced by expr().
The default implementation does nothing.
Declaration
public virtual void EnterExpr(tinyParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.ExprContext | context | The parse tree. |
EnterExpr_list(tinyParser.Expr_listContext)
Enter a parse tree produced by expr_list().
The default implementation does nothing.
Declaration
public virtual void EnterExpr_list(tinyParser.Expr_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Expr_listContext | context | The parse tree. |
EnterFactor(tinyParser.FactorContext)
Enter a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void EnterFactor(tinyParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.FactorContext | context | The parse tree. |
EnterId_list(tinyParser.Id_listContext)
Enter a parse tree produced by id_list().
The default implementation does nothing.
Declaration
public virtual void EnterId_list(tinyParser.Id_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Id_listContext | context | The parse tree. |
EnterIdent(tinyParser.IdentContext)
Enter a parse tree produced by ident().
The default implementation does nothing.
Declaration
public virtual void EnterIdent(tinyParser.IdentContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.IdentContext | context | The parse tree. |
EnterInteger(tinyParser.IntegerContext)
Enter a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void EnterInteger(tinyParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.IntegerContext | context | The parse tree. |
EnterOp(tinyParser.OpContext)
Enter a parse tree produced by op().
The default implementation does nothing.
Declaration
public virtual void EnterOp(tinyParser.OpContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.OpContext | context | The parse tree. |
EnterProgram(tinyParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(tinyParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.ProgramContext | context | The parse tree. |
EnterRead_stmt(tinyParser.Read_stmtContext)
Enter a parse tree produced by read_stmt().
The default implementation does nothing.
Declaration
public virtual void EnterRead_stmt(tinyParser.Read_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Read_stmtContext | context | The parse tree. |
EnterStmt(tinyParser.StmtContext)
Enter a parse tree produced by stmt().
The default implementation does nothing.
Declaration
public virtual void EnterStmt(tinyParser.StmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.StmtContext | context | The parse tree. |
EnterStmt_list(tinyParser.Stmt_listContext)
Enter a parse tree produced by stmt_list().
The default implementation does nothing.
Declaration
public virtual void EnterStmt_list(tinyParser.Stmt_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Stmt_listContext | context | The parse tree. |
EnterWrite_stmt(tinyParser.Write_stmtContext)
Enter a parse tree produced by write_stmt().
The default implementation does nothing.
Declaration
public virtual void EnterWrite_stmt(tinyParser.Write_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Write_stmtContext | context | The parse tree. |
ExitAssign_stmt(tinyParser.Assign_stmtContext)
Exit a parse tree produced by assign_stmt().
The default implementation does nothing.
Declaration
public virtual void ExitAssign_stmt(tinyParser.Assign_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Assign_stmtContext | 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(tinyParser.ExprContext)
Exit a parse tree produced by expr().
The default implementation does nothing.
Declaration
public virtual void ExitExpr(tinyParser.ExprContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.ExprContext | context | The parse tree. |
ExitExpr_list(tinyParser.Expr_listContext)
Exit a parse tree produced by expr_list().
The default implementation does nothing.
Declaration
public virtual void ExitExpr_list(tinyParser.Expr_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Expr_listContext | context | The parse tree. |
ExitFactor(tinyParser.FactorContext)
Exit a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void ExitFactor(tinyParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.FactorContext | context | The parse tree. |
ExitId_list(tinyParser.Id_listContext)
Exit a parse tree produced by id_list().
The default implementation does nothing.
Declaration
public virtual void ExitId_list(tinyParser.Id_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Id_listContext | context | The parse tree. |
ExitIdent(tinyParser.IdentContext)
Exit a parse tree produced by ident().
The default implementation does nothing.
Declaration
public virtual void ExitIdent(tinyParser.IdentContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.IdentContext | context | The parse tree. |
ExitInteger(tinyParser.IntegerContext)
Exit a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void ExitInteger(tinyParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.IntegerContext | context | The parse tree. |
ExitOp(tinyParser.OpContext)
Exit a parse tree produced by op().
The default implementation does nothing.
Declaration
public virtual void ExitOp(tinyParser.OpContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.OpContext | context | The parse tree. |
ExitProgram(tinyParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(tinyParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.ProgramContext | context | The parse tree. |
ExitRead_stmt(tinyParser.Read_stmtContext)
Exit a parse tree produced by read_stmt().
The default implementation does nothing.
Declaration
public virtual void ExitRead_stmt(tinyParser.Read_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Read_stmtContext | context | The parse tree. |
ExitStmt(tinyParser.StmtContext)
Exit a parse tree produced by stmt().
The default implementation does nothing.
Declaration
public virtual void ExitStmt(tinyParser.StmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.StmtContext | context | The parse tree. |
ExitStmt_list(tinyParser.Stmt_listContext)
Exit a parse tree produced by stmt_list().
The default implementation does nothing.
Declaration
public virtual void ExitStmt_list(tinyParser.Stmt_listContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Stmt_listContext | context | The parse tree. |
ExitWrite_stmt(tinyParser.Write_stmtContext)
Exit a parse tree produced by write_stmt().
The default implementation does nothing.
Declaration
public virtual void ExitWrite_stmt(tinyParser.Write_stmtContext context)
Parameters
Type | Name | Description |
---|---|---|
tinyParser.Write_stmtContext | 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.