Class focalBaseListener
This class provides an empty implementation of IfocalListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Focal
Assembly: Focal.dll
Syntax
public class focalBaseListener : object, IfocalListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAsk(focalParser.AskContext)
Enter a parse tree produced by ask().
The default implementation does nothing.
Declaration
public virtual void EnterAsk(focalParser.AskContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskContext | context | The parse tree. |
EnterAskpair(focalParser.AskpairContext)
Enter a parse tree produced by askpair().
The default implementation does nothing.
Declaration
public virtual void EnterAskpair(focalParser.AskpairContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskpairContext | context | The parse tree. |
EnterCommand(focalParser.CommandContext)
Enter a parse tree produced by command().
The default implementation does nothing.
Declaration
public virtual void EnterCommand(focalParser.CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommandContext | context | The parse tree. |
EnterComment(focalParser.CommentContext)
Enter a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void EnterComment(focalParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommentContext | context | The parse tree. |
EnterDo_(focalParser.Do_Context)
Enter a parse tree produced by do_().
The default implementation does nothing.
Declaration
public virtual void EnterDo_(focalParser.Do_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Do_Context | 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(focalParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(focalParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ExpressionContext | context | The parse tree. |
EnterFor_(focalParser.For_Context)
Enter a parse tree produced by for_().
The default implementation does nothing.
Declaration
public virtual void EnterFor_(focalParser.For_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.For_Context | context | The parse tree. |
EnterGoto_(focalParser.Goto_Context)
Enter a parse tree produced by goto_().
The default implementation does nothing.
Declaration
public virtual void EnterGoto_(focalParser.Goto_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Goto_Context | context | The parse tree. |
EnterGrpnum(focalParser.GrpnumContext)
Enter a parse tree produced by grpnum().
The default implementation does nothing.
Declaration
public virtual void EnterGrpnum(focalParser.GrpnumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.GrpnumContext | context | The parse tree. |
EnterIf_(focalParser.If_Context)
Enter a parse tree produced by if_().
The default implementation does nothing.
Declaration
public virtual void EnterIf_(focalParser.If_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.If_Context | context | The parse tree. |
EnterLinenum(focalParser.LinenumContext)
Enter a parse tree produced by linenum().
The default implementation does nothing.
Declaration
public virtual void EnterLinenum(focalParser.LinenumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.LinenumContext | context | The parse tree. |
EnterMantissa(focalParser.MantissaContext)
Enter a parse tree produced by mantissa().
The default implementation does nothing.
Declaration
public virtual void EnterMantissa(focalParser.MantissaContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.MantissaContext | context | The parse tree. |
EnterNumber(focalParser.NumberContext)
Enter a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void EnterNumber(focalParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.NumberContext | context | The parse tree. |
EnterPrimary(focalParser.PrimaryContext)
Enter a parse tree produced by primary().
The default implementation does nothing.
Declaration
public virtual void EnterPrimary(focalParser.PrimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.PrimaryContext | context | The parse tree. |
EnterProg(focalParser.ProgContext)
Enter a parse tree produced by prog().
The default implementation does nothing.
Declaration
public virtual void EnterProg(focalParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ProgContext | context | The parse tree. |
EnterQuit(focalParser.QuitContext)
Enter a parse tree produced by quit().
The default implementation does nothing.
Declaration
public virtual void EnterQuit(focalParser.QuitContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.QuitContext | context | The parse tree. |
EnterReturn_(focalParser.Return_Context)
Enter a parse tree produced by return_().
The default implementation does nothing.
Declaration
public virtual void EnterReturn_(focalParser.Return_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Return_Context | context | The parse tree. |
EnterSet_(focalParser.Set_Context)
Enter a parse tree produced by set_().
The default implementation does nothing.
Declaration
public virtual void EnterSet_(focalParser.Set_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Set_Context | context | The parse tree. |
EnterSigned_(focalParser.Signed_Context)
Enter a parse tree produced by signed_().
The default implementation does nothing.
Declaration
public virtual void EnterSigned_(focalParser.Signed_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Signed_Context | context | The parse tree. |
EnterStatement(focalParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(focalParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.StatementContext | context | The parse tree. |
EnterTerm(focalParser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(focalParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TermContext | context | The parse tree. |
EnterType_(focalParser.Type_Context)
Enter a parse tree produced by type_().
The default implementation does nothing.
Declaration
public virtual void EnterType_(focalParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Type_Context | context | The parse tree. |
EnterTypeexpression(focalParser.TypeexpressionContext)
Enter a parse tree produced by typeexpression().
The default implementation does nothing.
Declaration
public virtual void EnterTypeexpression(focalParser.TypeexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TypeexpressionContext | context | The parse tree. |
EnterWrite_(focalParser.Write_Context)
Enter a parse tree produced by write_().
The default implementation does nothing.
Declaration
public virtual void EnterWrite_(focalParser.Write_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Write_Context | context | The parse tree. |
ExitAsk(focalParser.AskContext)
Exit a parse tree produced by ask().
The default implementation does nothing.
Declaration
public virtual void ExitAsk(focalParser.AskContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskContext | context | The parse tree. |
ExitAskpair(focalParser.AskpairContext)
Exit a parse tree produced by askpair().
The default implementation does nothing.
Declaration
public virtual void ExitAskpair(focalParser.AskpairContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.AskpairContext | context | The parse tree. |
ExitCommand(focalParser.CommandContext)
Exit a parse tree produced by command().
The default implementation does nothing.
Declaration
public virtual void ExitCommand(focalParser.CommandContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommandContext | context | The parse tree. |
ExitComment(focalParser.CommentContext)
Exit a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void ExitComment(focalParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.CommentContext | context | The parse tree. |
ExitDo_(focalParser.Do_Context)
Exit a parse tree produced by do_().
The default implementation does nothing.
Declaration
public virtual void ExitDo_(focalParser.Do_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Do_Context | 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(focalParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(focalParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ExpressionContext | context | The parse tree. |
ExitFor_(focalParser.For_Context)
Exit a parse tree produced by for_().
The default implementation does nothing.
Declaration
public virtual void ExitFor_(focalParser.For_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.For_Context | context | The parse tree. |
ExitGoto_(focalParser.Goto_Context)
Exit a parse tree produced by goto_().
The default implementation does nothing.
Declaration
public virtual void ExitGoto_(focalParser.Goto_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Goto_Context | context | The parse tree. |
ExitGrpnum(focalParser.GrpnumContext)
Exit a parse tree produced by grpnum().
The default implementation does nothing.
Declaration
public virtual void ExitGrpnum(focalParser.GrpnumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.GrpnumContext | context | The parse tree. |
ExitIf_(focalParser.If_Context)
Exit a parse tree produced by if_().
The default implementation does nothing.
Declaration
public virtual void ExitIf_(focalParser.If_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.If_Context | context | The parse tree. |
ExitLinenum(focalParser.LinenumContext)
Exit a parse tree produced by linenum().
The default implementation does nothing.
Declaration
public virtual void ExitLinenum(focalParser.LinenumContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.LinenumContext | context | The parse tree. |
ExitMantissa(focalParser.MantissaContext)
Exit a parse tree produced by mantissa().
The default implementation does nothing.
Declaration
public virtual void ExitMantissa(focalParser.MantissaContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.MantissaContext | context | The parse tree. |
ExitNumber(focalParser.NumberContext)
Exit a parse tree produced by number().
The default implementation does nothing.
Declaration
public virtual void ExitNumber(focalParser.NumberContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.NumberContext | context | The parse tree. |
ExitPrimary(focalParser.PrimaryContext)
Exit a parse tree produced by primary().
The default implementation does nothing.
Declaration
public virtual void ExitPrimary(focalParser.PrimaryContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.PrimaryContext | context | The parse tree. |
ExitProg(focalParser.ProgContext)
Exit a parse tree produced by prog().
The default implementation does nothing.
Declaration
public virtual void ExitProg(focalParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.ProgContext | context | The parse tree. |
ExitQuit(focalParser.QuitContext)
Exit a parse tree produced by quit().
The default implementation does nothing.
Declaration
public virtual void ExitQuit(focalParser.QuitContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.QuitContext | context | The parse tree. |
ExitReturn_(focalParser.Return_Context)
Exit a parse tree produced by return_().
The default implementation does nothing.
Declaration
public virtual void ExitReturn_(focalParser.Return_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Return_Context | context | The parse tree. |
ExitSet_(focalParser.Set_Context)
Exit a parse tree produced by set_().
The default implementation does nothing.
Declaration
public virtual void ExitSet_(focalParser.Set_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Set_Context | context | The parse tree. |
ExitSigned_(focalParser.Signed_Context)
Exit a parse tree produced by signed_().
The default implementation does nothing.
Declaration
public virtual void ExitSigned_(focalParser.Signed_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Signed_Context | context | The parse tree. |
ExitStatement(focalParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(focalParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.StatementContext | context | The parse tree. |
ExitTerm(focalParser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(focalParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TermContext | context | The parse tree. |
ExitType_(focalParser.Type_Context)
Exit a parse tree produced by type_().
The default implementation does nothing.
Declaration
public virtual void ExitType_(focalParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Type_Context | context | The parse tree. |
ExitTypeexpression(focalParser.TypeexpressionContext)
Exit a parse tree produced by typeexpression().
The default implementation does nothing.
Declaration
public virtual void ExitTypeexpression(focalParser.TypeexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.TypeexpressionContext | context | The parse tree. |
ExitWrite_(focalParser.Write_Context)
Exit a parse tree produced by write_().
The default implementation does nothing.
Declaration
public virtual void ExitWrite_(focalParser.Write_Context context)
Parameters
Type | Name | Description |
---|---|---|
focalParser.Write_Context | 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.