Class pl0BaseListener
This class provides an empty implementation of Ipl0Listener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Pl0
Assembly: Pl0.dll
Syntax
public class pl0BaseListener : object, Ipl0Listener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAssignstmt(pl0Parser.AssignstmtContext)
Enter a parse tree produced by assignstmt().
The default implementation does nothing.
Declaration
public virtual void EnterAssignstmt(pl0Parser.AssignstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.AssignstmtContext | context | The parse tree. |
EnterBangstmt(pl0Parser.BangstmtContext)
Enter a parse tree produced by bangstmt().
The default implementation does nothing.
Declaration
public virtual void EnterBangstmt(pl0Parser.BangstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BangstmtContext | context | The parse tree. |
EnterBeginstmt(pl0Parser.BeginstmtContext)
Enter a parse tree produced by beginstmt().
The default implementation does nothing.
Declaration
public virtual void EnterBeginstmt(pl0Parser.BeginstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BeginstmtContext | context | The parse tree. |
EnterBlock(pl0Parser.BlockContext)
Enter a parse tree produced by block().
The default implementation does nothing.
Declaration
public virtual void EnterBlock(pl0Parser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BlockContext | context | The parse tree. |
EnterCallstmt(pl0Parser.CallstmtContext)
Enter a parse tree produced by callstmt().
The default implementation does nothing.
Declaration
public virtual void EnterCallstmt(pl0Parser.CallstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.CallstmtContext | context | The parse tree. |
EnterCondition(pl0Parser.ConditionContext)
Enter a parse tree produced by condition().
The default implementation does nothing.
Declaration
public virtual void EnterCondition(pl0Parser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ConditionContext | context | The parse tree. |
EnterConsts(pl0Parser.ConstsContext)
Enter a parse tree produced by consts().
The default implementation does nothing.
Declaration
public virtual void EnterConsts(pl0Parser.ConstsContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ConstsContext | 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.
EnterExpression(pl0Parser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(pl0Parser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ExpressionContext | context | The parse tree. |
EnterFactor(pl0Parser.FactorContext)
Enter a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void EnterFactor(pl0Parser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.FactorContext | context | The parse tree. |
EnterIdent(pl0Parser.IdentContext)
Enter a parse tree produced by ident().
The default implementation does nothing.
Declaration
public virtual void EnterIdent(pl0Parser.IdentContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.IdentContext | context | The parse tree. |
EnterIfstmt(pl0Parser.IfstmtContext)
Enter a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void EnterIfstmt(pl0Parser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.IfstmtContext | context | The parse tree. |
EnterNumber(pl0Parser.NumberContext)
Enter a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void EnterNumber(pl0Parser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.NumberContext | context | The parse tree. |
EnterProcedure(pl0Parser.ProcedureContext)
Enter a parse tree produced by procedure().
The default implementation does nothing.
Declaration
public virtual void EnterProcedure(pl0Parser.ProcedureContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ProcedureContext | context | The parse tree. |
EnterProgram(pl0Parser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(pl0Parser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ProgramContext | context | The parse tree. |
EnterQstmt(pl0Parser.QstmtContext)
Enter a parse tree produced by qstmt().
The default implementation does nothing.
Declaration
public virtual void EnterQstmt(pl0Parser.QstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.QstmtContext | context | The parse tree. |
EnterStatement(pl0Parser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(pl0Parser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.StatementContext | context | The parse tree. |
EnterTerm(pl0Parser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(pl0Parser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.TermContext | context | The parse tree. |
EnterVars_(pl0Parser.Vars_Context)
Enter a parse tree produced by vars_().
The default implementation does nothing.
Declaration
public virtual void EnterVars_(pl0Parser.Vars_Context context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.Vars_Context | context | The parse tree. |
EnterWhilestmt(pl0Parser.WhilestmtContext)
Enter a parse tree produced by whilestmt().
The default implementation does nothing.
Declaration
public virtual void EnterWhilestmt(pl0Parser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.WhilestmtContext | context | The parse tree. |
EnterWritestmt(pl0Parser.WritestmtContext)
Enter a parse tree produced by writestmt().
The default implementation does nothing.
Declaration
public virtual void EnterWritestmt(pl0Parser.WritestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.WritestmtContext | context | The parse tree. |
ExitAssignstmt(pl0Parser.AssignstmtContext)
Exit a parse tree produced by assignstmt().
The default implementation does nothing.
Declaration
public virtual void ExitAssignstmt(pl0Parser.AssignstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.AssignstmtContext | context | The parse tree. |
ExitBangstmt(pl0Parser.BangstmtContext)
Exit a parse tree produced by bangstmt().
The default implementation does nothing.
Declaration
public virtual void ExitBangstmt(pl0Parser.BangstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BangstmtContext | context | The parse tree. |
ExitBeginstmt(pl0Parser.BeginstmtContext)
Exit a parse tree produced by beginstmt().
The default implementation does nothing.
Declaration
public virtual void ExitBeginstmt(pl0Parser.BeginstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BeginstmtContext | context | The parse tree. |
ExitBlock(pl0Parser.BlockContext)
Exit a parse tree produced by block().
The default implementation does nothing.
Declaration
public virtual void ExitBlock(pl0Parser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.BlockContext | context | The parse tree. |
ExitCallstmt(pl0Parser.CallstmtContext)
Exit a parse tree produced by callstmt().
The default implementation does nothing.
Declaration
public virtual void ExitCallstmt(pl0Parser.CallstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.CallstmtContext | context | The parse tree. |
ExitCondition(pl0Parser.ConditionContext)
Exit a parse tree produced by condition().
The default implementation does nothing.
Declaration
public virtual void ExitCondition(pl0Parser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ConditionContext | context | The parse tree. |
ExitConsts(pl0Parser.ConstsContext)
Exit a parse tree produced by consts().
The default implementation does nothing.
Declaration
public virtual void ExitConsts(pl0Parser.ConstsContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ConstsContext | 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.
ExitExpression(pl0Parser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(pl0Parser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ExpressionContext | context | The parse tree. |
ExitFactor(pl0Parser.FactorContext)
Exit a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void ExitFactor(pl0Parser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.FactorContext | context | The parse tree. |
ExitIdent(pl0Parser.IdentContext)
Exit a parse tree produced by ident().
The default implementation does nothing.
Declaration
public virtual void ExitIdent(pl0Parser.IdentContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.IdentContext | context | The parse tree. |
ExitIfstmt(pl0Parser.IfstmtContext)
Exit a parse tree produced by ifstmt().
The default implementation does nothing.
Declaration
public virtual void ExitIfstmt(pl0Parser.IfstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.IfstmtContext | context | The parse tree. |
ExitNumber(pl0Parser.NumberContext)
Exit a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void ExitNumber(pl0Parser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.NumberContext | context | The parse tree. |
ExitProcedure(pl0Parser.ProcedureContext)
Exit a parse tree produced by procedure().
The default implementation does nothing.
Declaration
public virtual void ExitProcedure(pl0Parser.ProcedureContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ProcedureContext | context | The parse tree. |
ExitProgram(pl0Parser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(pl0Parser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.ProgramContext | context | The parse tree. |
ExitQstmt(pl0Parser.QstmtContext)
Exit a parse tree produced by qstmt().
The default implementation does nothing.
Declaration
public virtual void ExitQstmt(pl0Parser.QstmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.QstmtContext | context | The parse tree. |
ExitStatement(pl0Parser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(pl0Parser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.StatementContext | context | The parse tree. |
ExitTerm(pl0Parser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(pl0Parser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.TermContext | context | The parse tree. |
ExitVars_(pl0Parser.Vars_Context)
Exit a parse tree produced by vars_().
The default implementation does nothing.
Declaration
public virtual void ExitVars_(pl0Parser.Vars_Context context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.Vars_Context | context | The parse tree. |
ExitWhilestmt(pl0Parser.WhilestmtContext)
Exit a parse tree produced by whilestmt().
The default implementation does nothing.
Declaration
public virtual void ExitWhilestmt(pl0Parser.WhilestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.WhilestmtContext | context | The parse tree. |
ExitWritestmt(pl0Parser.WritestmtContext)
Exit a parse tree produced by writestmt().
The default implementation does nothing.
Declaration
public virtual void ExitWritestmt(pl0Parser.WritestmtContext context)
Parameters
Type | Name | Description |
---|---|---|
pl0Parser.WritestmtContext | 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.