Class refalBaseListener
This class provides an empty implementation of IrefalListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Refal
Assembly: Refal.dll
Syntax
public class refalBaseListener : object, IrefalListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterArg_(refalParser.Arg_Context)
Enter a parse tree produced by arg_().
The default implementation does nothing.
Declaration
public virtual void EnterArg_(refalParser.Arg_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Arg_Context | context | The parse tree. |
EnterBlock_(refalParser.Block_Context)
Enter a parse tree produced by block_().
The default implementation does nothing.
Declaration
public virtual void EnterBlock_(refalParser.Block_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Block_Context | context | The parse tree. |
EnterBlock_ending(refalParser.Block_endingContext)
Enter a parse tree produced by block_ending().
The default implementation does nothing.
Declaration
public virtual void EnterBlock_ending(refalParser.Block_endingContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Block_endingContext | context | The parse tree. |
EnterConditions(refalParser.ConditionsContext)
Enter a parse tree produced by conditions().
The default implementation does nothing.
Declaration
public virtual void EnterConditions(refalParser.ConditionsContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.ConditionsContext | context | The parse tree. |
EnterEvar(refalParser.EvarContext)
Enter a parse tree produced by evar().
The default implementation does nothing.
Declaration
public virtual void EnterEvar(refalParser.EvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.EvarContext | 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_(refalParser.Expression_Context)
Enter a parse tree produced by expression_().
The default implementation does nothing.
Declaration
public virtual void EnterExpression_(refalParser.Expression_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Expression_Context | context | The parse tree. |
EnterExternal_decl(refalParser.External_declContext)
Enter a parse tree produced by external_decl().
The default implementation does nothing.
Declaration
public virtual void EnterExternal_decl(refalParser.External_declContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.External_declContext | context | The parse tree. |
EnterF_definition(refalParser.F_definitionContext)
Enter a parse tree produced by f_definition().
The default implementation does nothing.
Declaration
public virtual void EnterF_definition(refalParser.F_definitionContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_definitionContext | context | The parse tree. |
EnterF_name(refalParser.F_nameContext)
Enter a parse tree produced by f_name().
The default implementation does nothing.
Declaration
public virtual void EnterF_name(refalParser.F_nameContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_nameContext | context | The parse tree. |
EnterF_name_list(refalParser.F_name_listContext)
Enter a parse tree produced by f_name_list().
The default implementation does nothing.
Declaration
public virtual void EnterF_name_list(refalParser.F_name_listContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_name_listContext | context | The parse tree. |
EnterIdentifier(refalParser.IdentifierContext)
Enter a parse tree produced by identifier().
The default implementation does nothing.
Declaration
public virtual void EnterIdentifier(refalParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.IdentifierContext | context | The parse tree. |
EnterIndex(refalParser.IndexContext)
Enter a parse tree produced by index().
The default implementation does nothing.
Declaration
public virtual void EnterIndex(refalParser.IndexContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.IndexContext | context | The parse tree. |
EnterLeft_side(refalParser.Left_sideContext)
Enter a parse tree produced by left_side().
The default implementation does nothing.
Declaration
public virtual void EnterLeft_side(refalParser.Left_sideContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Left_sideContext | context | The parse tree. |
EnterPattern(refalParser.PatternContext)
Enter a parse tree produced by pattern().
The default implementation does nothing.
Declaration
public virtual void EnterPattern(refalParser.PatternContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.PatternContext | context | The parse tree. |
EnterProgram(refalParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(refalParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.ProgramContext | context | The parse tree. |
EnterRight_side(refalParser.Right_sideContext)
Enter a parse tree produced by right_side().
The default implementation does nothing.
Declaration
public virtual void EnterRight_side(refalParser.Right_sideContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Right_sideContext | context | The parse tree. |
EnterSentence(refalParser.SentenceContext)
Enter a parse tree produced by sentence().
The default implementation does nothing.
Declaration
public virtual void EnterSentence(refalParser.SentenceContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SentenceContext | context | The parse tree. |
EnterSvar(refalParser.SvarContext)
Enter a parse tree produced by svar().
The default implementation does nothing.
Declaration
public virtual void EnterSvar(refalParser.SvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SvarContext | context | The parse tree. |
EnterSymbol(refalParser.SymbolContext)
Enter a parse tree produced by symbol().
The default implementation does nothing.
Declaration
public virtual void EnterSymbol(refalParser.SymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SymbolContext | context | The parse tree. |
EnterTerm_(refalParser.Term_Context)
Enter a parse tree produced by term_().
The default implementation does nothing.
Declaration
public virtual void EnterTerm_(refalParser.Term_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Term_Context | context | The parse tree. |
EnterTvar(refalParser.TvarContext)
Enter a parse tree produced by tvar().
The default implementation does nothing.
Declaration
public virtual void EnterTvar(refalParser.TvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.TvarContext | context | The parse tree. |
EnterVariable(refalParser.VariableContext)
Enter a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void EnterVariable(refalParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.VariableContext | context | The parse tree. |
ExitArg_(refalParser.Arg_Context)
Exit a parse tree produced by arg_().
The default implementation does nothing.
Declaration
public virtual void ExitArg_(refalParser.Arg_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Arg_Context | context | The parse tree. |
ExitBlock_(refalParser.Block_Context)
Exit a parse tree produced by block_().
The default implementation does nothing.
Declaration
public virtual void ExitBlock_(refalParser.Block_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Block_Context | context | The parse tree. |
ExitBlock_ending(refalParser.Block_endingContext)
Exit a parse tree produced by block_ending().
The default implementation does nothing.
Declaration
public virtual void ExitBlock_ending(refalParser.Block_endingContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Block_endingContext | context | The parse tree. |
ExitConditions(refalParser.ConditionsContext)
Exit a parse tree produced by conditions().
The default implementation does nothing.
Declaration
public virtual void ExitConditions(refalParser.ConditionsContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.ConditionsContext | context | The parse tree. |
ExitEvar(refalParser.EvarContext)
Exit a parse tree produced by evar().
The default implementation does nothing.
Declaration
public virtual void ExitEvar(refalParser.EvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.EvarContext | 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_(refalParser.Expression_Context)
Exit a parse tree produced by expression_().
The default implementation does nothing.
Declaration
public virtual void ExitExpression_(refalParser.Expression_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Expression_Context | context | The parse tree. |
ExitExternal_decl(refalParser.External_declContext)
Exit a parse tree produced by external_decl().
The default implementation does nothing.
Declaration
public virtual void ExitExternal_decl(refalParser.External_declContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.External_declContext | context | The parse tree. |
ExitF_definition(refalParser.F_definitionContext)
Exit a parse tree produced by f_definition().
The default implementation does nothing.
Declaration
public virtual void ExitF_definition(refalParser.F_definitionContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_definitionContext | context | The parse tree. |
ExitF_name(refalParser.F_nameContext)
Exit a parse tree produced by f_name().
The default implementation does nothing.
Declaration
public virtual void ExitF_name(refalParser.F_nameContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_nameContext | context | The parse tree. |
ExitF_name_list(refalParser.F_name_listContext)
Exit a parse tree produced by f_name_list().
The default implementation does nothing.
Declaration
public virtual void ExitF_name_list(refalParser.F_name_listContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.F_name_listContext | context | The parse tree. |
ExitIdentifier(refalParser.IdentifierContext)
Exit a parse tree produced by identifier().
The default implementation does nothing.
Declaration
public virtual void ExitIdentifier(refalParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.IdentifierContext | context | The parse tree. |
ExitIndex(refalParser.IndexContext)
Exit a parse tree produced by index().
The default implementation does nothing.
Declaration
public virtual void ExitIndex(refalParser.IndexContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.IndexContext | context | The parse tree. |
ExitLeft_side(refalParser.Left_sideContext)
Exit a parse tree produced by left_side().
The default implementation does nothing.
Declaration
public virtual void ExitLeft_side(refalParser.Left_sideContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Left_sideContext | context | The parse tree. |
ExitPattern(refalParser.PatternContext)
Exit a parse tree produced by pattern().
The default implementation does nothing.
Declaration
public virtual void ExitPattern(refalParser.PatternContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.PatternContext | context | The parse tree. |
ExitProgram(refalParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(refalParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.ProgramContext | context | The parse tree. |
ExitRight_side(refalParser.Right_sideContext)
Exit a parse tree produced by right_side().
The default implementation does nothing.
Declaration
public virtual void ExitRight_side(refalParser.Right_sideContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Right_sideContext | context | The parse tree. |
ExitSentence(refalParser.SentenceContext)
Exit a parse tree produced by sentence().
The default implementation does nothing.
Declaration
public virtual void ExitSentence(refalParser.SentenceContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SentenceContext | context | The parse tree. |
ExitSvar(refalParser.SvarContext)
Exit a parse tree produced by svar().
The default implementation does nothing.
Declaration
public virtual void ExitSvar(refalParser.SvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SvarContext | context | The parse tree. |
ExitSymbol(refalParser.SymbolContext)
Exit a parse tree produced by symbol().
The default implementation does nothing.
Declaration
public virtual void ExitSymbol(refalParser.SymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.SymbolContext | context | The parse tree. |
ExitTerm_(refalParser.Term_Context)
Exit a parse tree produced by term_().
The default implementation does nothing.
Declaration
public virtual void ExitTerm_(refalParser.Term_Context context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.Term_Context | context | The parse tree. |
ExitTvar(refalParser.TvarContext)
Exit a parse tree produced by tvar().
The default implementation does nothing.
Declaration
public virtual void ExitTvar(refalParser.TvarContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.TvarContext | context | The parse tree. |
ExitVariable(refalParser.VariableContext)
Exit a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void ExitVariable(refalParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
refalParser.VariableContext | 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.