Class lisaBaseListener
This class provides an empty implementation of IlisaListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Lisa
Assembly: Lisa.dll
Syntax
public class lisaBaseListener : object, IlisaListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAdd_expression(lisaParser.Add_expressionContext)
Enter a parse tree produced by add_expression().
The default implementation does nothing.
Declaration
public virtual void EnterAdd_expression(lisaParser.Add_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Add_expressionContext | context | The parse tree. |
EnterAddop(lisaParser.AddopContext)
Enter a parse tree produced by addop().
The default implementation does nothing.
Declaration
public virtual void EnterAddop(lisaParser.AddopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.AddopContext | context | The parse tree. |
EnterConstant(lisaParser.ConstantContext)
Enter a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void EnterConstant(lisaParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ConstantContext | context | The parse tree. |
EnterDeclaration_block(lisaParser.Declaration_blockContext)
Enter a parse tree produced by declaration_block().
The default implementation does nothing.
Declaration
public virtual void EnterDeclaration_block(lisaParser.Declaration_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_blockContext | context | The parse tree. |
EnterDeclaration_statement(lisaParser.Declaration_statementContext)
Enter a parse tree produced by declaration_statement().
The default implementation does nothing.
Declaration
public virtual void EnterDeclaration_statement(lisaParser.Declaration_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_statementContext | context | The parse tree. |
EnterDeclaration_statements(lisaParser.Declaration_statementsContext)
Enter a parse tree produced by declaration_statements().
The default implementation does nothing.
Declaration
public virtual void EnterDeclaration_statements(lisaParser.Declaration_statementsContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_statementsContext | 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(lisaParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(lisaParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ExpressionContext | context | The parse tree. |
EnterExpression_statement(lisaParser.Expression_statementContext)
Enter a parse tree produced by expression_statement().
The default implementation does nothing.
Declaration
public virtual void EnterExpression_statement(lisaParser.Expression_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Expression_statementContext | context | The parse tree. |
EnterExprop(lisaParser.ExpropContext)
Enter a parse tree produced by exprop().
The default implementation does nothing.
Declaration
public virtual void EnterExprop(lisaParser.ExpropContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ExpropContext | context | The parse tree. |
EnterFactor(lisaParser.FactorContext)
Enter a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void EnterFactor(lisaParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.FactorContext | context | The parse tree. |
EnterFunction_(lisaParser.Function_Context)
Enter a parse tree produced by function_().
The default implementation does nothing.
Declaration
public virtual void EnterFunction_(lisaParser.Function_Context context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Function_Context | context | The parse tree. |
EnterGenerating_statement(lisaParser.Generating_statementContext)
Enter a parse tree produced by generating_statement().
The default implementation does nothing.
Declaration
public virtual void EnterGenerating_statement(lisaParser.Generating_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Generating_statementContext | context | The parse tree. |
EnterGenerator_type(lisaParser.Generator_typeContext)
Enter a parse tree produced by generator_type().
The default implementation does nothing.
Declaration
public virtual void EnterGenerator_type(lisaParser.Generator_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Generator_typeContext | context | The parse tree. |
EnterIf_statement(lisaParser.If_statementContext)
Enter a parse tree produced by if_statement().
The default implementation does nothing.
Declaration
public virtual void EnterIf_statement(lisaParser.If_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.If_statementContext | context | The parse tree. |
EnterInteger(lisaParser.IntegerContext)
Enter a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void EnterInteger(lisaParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.IntegerContext | context | The parse tree. |
EnterMultop(lisaParser.MultopContext)
Enter a parse tree produced by multop().
The default implementation does nothing.
Declaration
public virtual void EnterMultop(lisaParser.MultopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.MultopContext | context | The parse tree. |
EnterOr_expression(lisaParser.Or_expressionContext)
Enter a parse tree produced by or_expression().
The default implementation does nothing.
Declaration
public virtual void EnterOr_expression(lisaParser.Or_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Or_expressionContext | context | The parse tree. |
EnterParameter_list(lisaParser.Parameter_listContext)
Enter a parse tree produced by parameter_list().
The default implementation does nothing.
Declaration
public virtual void EnterParameter_list(lisaParser.Parameter_listContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Parameter_listContext | context | The parse tree. |
EnterProgram(lisaParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(lisaParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ProgramContext | context | The parse tree. |
EnterProgram_block(lisaParser.Program_blockContext)
Enter a parse tree produced by program_block().
The default implementation does nothing.
Declaration
public virtual void EnterProgram_block(lisaParser.Program_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Program_blockContext | context | The parse tree. |
EnterRelation_expression(lisaParser.Relation_expressionContext)
Enter a parse tree produced by relation_expression().
The default implementation does nothing.
Declaration
public virtual void EnterRelation_expression(lisaParser.Relation_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Relation_expressionContext | context | The parse tree. |
EnterRelop(lisaParser.RelopContext)
Enter a parse tree produced by relop().
The default implementation does nothing.
Declaration
public virtual void EnterRelop(lisaParser.RelopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.RelopContext | context | The parse tree. |
EnterSimple_expression(lisaParser.Simple_expressionContext)
Enter a parse tree produced by simple_expression().
The default implementation does nothing.
Declaration
public virtual void EnterSimple_expression(lisaParser.Simple_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Simple_expressionContext | context | The parse tree. |
EnterStatement(lisaParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(lisaParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.StatementContext | context | The parse tree. |
EnterStatements(lisaParser.StatementsContext)
Enter a parse tree produced by statements().
The default implementation does nothing.
Declaration
public virtual void EnterStatements(lisaParser.StatementsContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.StatementsContext | context | The parse tree. |
EnterTerm(lisaParser.TermContext)
Enter a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void EnterTerm(lisaParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.TermContext | context | The parse tree. |
EnterType_(lisaParser.Type_Context)
Enter a parse tree produced by type_().
The default implementation does nothing.
Declaration
public virtual void EnterType_(lisaParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Type_Context | context | The parse tree. |
EnterUnary_relationexpression(lisaParser.Unary_relationexpressionContext)
Enter a parse tree produced by unary_relationexpression().
The default implementation does nothing.
Declaration
public virtual void EnterUnary_relationexpression(lisaParser.Unary_relationexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Unary_relationexpressionContext | context | The parse tree. |
EnterVariable(lisaParser.VariableContext)
Enter a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void EnterVariable(lisaParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.VariableContext | context | The parse tree. |
EnterWhile_statement(lisaParser.While_statementContext)
Enter a parse tree produced by while_statement().
The default implementation does nothing.
Declaration
public virtual void EnterWhile_statement(lisaParser.While_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.While_statementContext | context | The parse tree. |
ExitAdd_expression(lisaParser.Add_expressionContext)
Exit a parse tree produced by add_expression().
The default implementation does nothing.
Declaration
public virtual void ExitAdd_expression(lisaParser.Add_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Add_expressionContext | context | The parse tree. |
ExitAddop(lisaParser.AddopContext)
Exit a parse tree produced by addop().
The default implementation does nothing.
Declaration
public virtual void ExitAddop(lisaParser.AddopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.AddopContext | context | The parse tree. |
ExitConstant(lisaParser.ConstantContext)
Exit a parse tree produced by constant().
The default implementation does nothing.
Declaration
public virtual void ExitConstant(lisaParser.ConstantContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ConstantContext | context | The parse tree. |
ExitDeclaration_block(lisaParser.Declaration_blockContext)
Exit a parse tree produced by declaration_block().
The default implementation does nothing.
Declaration
public virtual void ExitDeclaration_block(lisaParser.Declaration_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_blockContext | context | The parse tree. |
ExitDeclaration_statement(lisaParser.Declaration_statementContext)
Exit a parse tree produced by declaration_statement().
The default implementation does nothing.
Declaration
public virtual void ExitDeclaration_statement(lisaParser.Declaration_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_statementContext | context | The parse tree. |
ExitDeclaration_statements(lisaParser.Declaration_statementsContext)
Exit a parse tree produced by declaration_statements().
The default implementation does nothing.
Declaration
public virtual void ExitDeclaration_statements(lisaParser.Declaration_statementsContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Declaration_statementsContext | 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(lisaParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(lisaParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ExpressionContext | context | The parse tree. |
ExitExpression_statement(lisaParser.Expression_statementContext)
Exit a parse tree produced by expression_statement().
The default implementation does nothing.
Declaration
public virtual void ExitExpression_statement(lisaParser.Expression_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Expression_statementContext | context | The parse tree. |
ExitExprop(lisaParser.ExpropContext)
Exit a parse tree produced by exprop().
The default implementation does nothing.
Declaration
public virtual void ExitExprop(lisaParser.ExpropContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ExpropContext | context | The parse tree. |
ExitFactor(lisaParser.FactorContext)
Exit a parse tree produced by factor().
The default implementation does nothing.
Declaration
public virtual void ExitFactor(lisaParser.FactorContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.FactorContext | context | The parse tree. |
ExitFunction_(lisaParser.Function_Context)
Exit a parse tree produced by function_().
The default implementation does nothing.
Declaration
public virtual void ExitFunction_(lisaParser.Function_Context context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Function_Context | context | The parse tree. |
ExitGenerating_statement(lisaParser.Generating_statementContext)
Exit a parse tree produced by generating_statement().
The default implementation does nothing.
Declaration
public virtual void ExitGenerating_statement(lisaParser.Generating_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Generating_statementContext | context | The parse tree. |
ExitGenerator_type(lisaParser.Generator_typeContext)
Exit a parse tree produced by generator_type().
The default implementation does nothing.
Declaration
public virtual void ExitGenerator_type(lisaParser.Generator_typeContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Generator_typeContext | context | The parse tree. |
ExitIf_statement(lisaParser.If_statementContext)
Exit a parse tree produced by if_statement().
The default implementation does nothing.
Declaration
public virtual void ExitIf_statement(lisaParser.If_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.If_statementContext | context | The parse tree. |
ExitInteger(lisaParser.IntegerContext)
Exit a parse tree produced by integer().
The default implementation does nothing.
Declaration
public virtual void ExitInteger(lisaParser.IntegerContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.IntegerContext | context | The parse tree. |
ExitMultop(lisaParser.MultopContext)
Exit a parse tree produced by multop().
The default implementation does nothing.
Declaration
public virtual void ExitMultop(lisaParser.MultopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.MultopContext | context | The parse tree. |
ExitOr_expression(lisaParser.Or_expressionContext)
Exit a parse tree produced by or_expression().
The default implementation does nothing.
Declaration
public virtual void ExitOr_expression(lisaParser.Or_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Or_expressionContext | context | The parse tree. |
ExitParameter_list(lisaParser.Parameter_listContext)
Exit a parse tree produced by parameter_list().
The default implementation does nothing.
Declaration
public virtual void ExitParameter_list(lisaParser.Parameter_listContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Parameter_listContext | context | The parse tree. |
ExitProgram(lisaParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(lisaParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.ProgramContext | context | The parse tree. |
ExitProgram_block(lisaParser.Program_blockContext)
Exit a parse tree produced by program_block().
The default implementation does nothing.
Declaration
public virtual void ExitProgram_block(lisaParser.Program_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Program_blockContext | context | The parse tree. |
ExitRelation_expression(lisaParser.Relation_expressionContext)
Exit a parse tree produced by relation_expression().
The default implementation does nothing.
Declaration
public virtual void ExitRelation_expression(lisaParser.Relation_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Relation_expressionContext | context | The parse tree. |
ExitRelop(lisaParser.RelopContext)
Exit a parse tree produced by relop().
The default implementation does nothing.
Declaration
public virtual void ExitRelop(lisaParser.RelopContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.RelopContext | context | The parse tree. |
ExitSimple_expression(lisaParser.Simple_expressionContext)
Exit a parse tree produced by simple_expression().
The default implementation does nothing.
Declaration
public virtual void ExitSimple_expression(lisaParser.Simple_expressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Simple_expressionContext | context | The parse tree. |
ExitStatement(lisaParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(lisaParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.StatementContext | context | The parse tree. |
ExitStatements(lisaParser.StatementsContext)
Exit a parse tree produced by statements().
The default implementation does nothing.
Declaration
public virtual void ExitStatements(lisaParser.StatementsContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.StatementsContext | context | The parse tree. |
ExitTerm(lisaParser.TermContext)
Exit a parse tree produced by term().
The default implementation does nothing.
Declaration
public virtual void ExitTerm(lisaParser.TermContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.TermContext | context | The parse tree. |
ExitType_(lisaParser.Type_Context)
Exit a parse tree produced by type_().
The default implementation does nothing.
Declaration
public virtual void ExitType_(lisaParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Type_Context | context | The parse tree. |
ExitUnary_relationexpression(lisaParser.Unary_relationexpressionContext)
Exit a parse tree produced by unary_relationexpression().
The default implementation does nothing.
Declaration
public virtual void ExitUnary_relationexpression(lisaParser.Unary_relationexpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.Unary_relationexpressionContext | context | The parse tree. |
ExitVariable(lisaParser.VariableContext)
Exit a parse tree produced by variable().
The default implementation does nothing.
Declaration
public virtual void ExitVariable(lisaParser.VariableContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.VariableContext | context | The parse tree. |
ExitWhile_statement(lisaParser.While_statementContext)
Exit a parse tree produced by while_statement().
The default implementation does nothing.
Declaration
public virtual void ExitWhile_statement(lisaParser.While_statementContext context)
Parameters
Type | Name | Description |
---|---|---|
lisaParser.While_statementContext | 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.