Class lolcodeBaseListener
This class provides an empty implementation of IlolcodeListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Lolcode
Assembly: Lolcode.dll
Syntax
public class lolcodeBaseListener : object, IlolcodeListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAdd(lolcodeParser.AddContext)
Enter a parse tree produced by add().
The default implementation does nothing.
Declaration
public virtual void EnterAdd(lolcodeParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AddContext | context | The parse tree. |
EnterAll_(lolcodeParser.All_Context)
Enter a parse tree produced by all_().
The default implementation does nothing.
Declaration
public virtual void EnterAll_(lolcodeParser.All_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.All_Context | context | The parse tree. |
EnterAny_(lolcodeParser.Any_Context)
Enter a parse tree produced by any_().
The default implementation does nothing.
Declaration
public virtual void EnterAny_(lolcodeParser.Any_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Any_Context | context | The parse tree. |
EnterAssignment(lolcodeParser.AssignmentContext)
Enter a parse tree produced by assignment().
The default implementation does nothing.
Declaration
public virtual void EnterAssignment(lolcodeParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AssignmentContext | context | The parse tree. |
EnterBoth(lolcodeParser.BothContext)
Enter a parse tree produced by both().
The default implementation does nothing.
Declaration
public virtual void EnterBoth(lolcodeParser.BothContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.BothContext | context | The parse tree. |
EnterCast(lolcodeParser.CastContext)
Enter a parse tree produced by cast().
The default implementation does nothing.
Declaration
public virtual void EnterCast(lolcodeParser.CastContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CastContext | context | The parse tree. |
EnterCode_block(lolcodeParser.Code_blockContext)
Enter a parse tree produced by code_block().
The default implementation does nothing.
Declaration
public virtual void EnterCode_block(lolcodeParser.Code_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Code_blockContext | context | The parse tree. |
EnterComment(lolcodeParser.CommentContext)
Enter a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void EnterComment(lolcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CommentContext | context | The parse tree. |
EnterDeclaration(lolcodeParser.DeclarationContext)
Enter a parse tree produced by declaration().
The default implementation does nothing.
Declaration
public virtual void EnterDeclaration(lolcodeParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DeclarationContext | context | The parse tree. |
EnterDiv(lolcodeParser.DivContext)
Enter a parse tree produced by div().
The default implementation does nothing.
Declaration
public virtual void EnterDiv(lolcodeParser.DivContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DivContext | context | The parse tree. |
EnterEither(lolcodeParser.EitherContext)
Enter a parse tree produced by either().
The default implementation does nothing.
Declaration
public virtual void EnterEither(lolcodeParser.EitherContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EitherContext | context | The parse tree. |
EnterElse_if_block(lolcodeParser.Else_if_blockContext)
Enter a parse tree produced by else_if_block().
The default implementation does nothing.
Declaration
public virtual void EnterElse_if_block(lolcodeParser.Else_if_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Else_if_blockContext | context | The parse tree. |
EnterEquals(lolcodeParser.EqualsContext)
Enter a parse tree produced by equals().
The default implementation does nothing.
Declaration
public virtual void EnterEquals(lolcodeParser.EqualsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EqualsContext | 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(lolcodeParser.ExpressionContext)
Enter a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void EnterExpression(lolcodeParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ExpressionContext | context | The parse tree. |
EnterFunc_(lolcodeParser.Func_Context)
Enter a parse tree produced by func_().
The default implementation does nothing.
Declaration
public virtual void EnterFunc_(lolcodeParser.Func_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_Context | context | The parse tree. |
EnterFunc_decl(lolcodeParser.Func_declContext)
Enter a parse tree produced by func_decl().
The default implementation does nothing.
Declaration
public virtual void EnterFunc_decl(lolcodeParser.Func_declContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_declContext | context | The parse tree. |
EnterGreater(lolcodeParser.GreaterContext)
Enter a parse tree produced by greater().
The default implementation does nothing.
Declaration
public virtual void EnterGreater(lolcodeParser.GreaterContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.GreaterContext | context | The parse tree. |
EnterIf_block(lolcodeParser.If_blockContext)
Enter a parse tree produced by if_block().
The default implementation does nothing.
Declaration
public virtual void EnterIf_block(lolcodeParser.If_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.If_blockContext | context | The parse tree. |
EnterInput_block(lolcodeParser.Input_blockContext)
Enter a parse tree produced by input_block().
The default implementation does nothing.
Declaration
public virtual void EnterInput_block(lolcodeParser.Input_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Input_blockContext | context | The parse tree. |
EnterLess(lolcodeParser.LessContext)
Enter a parse tree produced by less().
The default implementation does nothing.
Declaration
public virtual void EnterLess(lolcodeParser.LessContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LessContext | context | The parse tree. |
EnterLoop(lolcodeParser.LoopContext)
Enter a parse tree produced by loop().
The default implementation does nothing.
Declaration
public virtual void EnterLoop(lolcodeParser.LoopContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LoopContext | context | The parse tree. |
EnterMod(lolcodeParser.ModContext)
Enter a parse tree produced by mod().
The default implementation does nothing.
Declaration
public virtual void EnterMod(lolcodeParser.ModContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ModContext | context | The parse tree. |
EnterMul(lolcodeParser.MulContext)
Enter a parse tree produced by mul().
The default implementation does nothing.
Declaration
public virtual void EnterMul(lolcodeParser.MulContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.MulContext | context | The parse tree. |
EnterNot_(lolcodeParser.Not_Context)
Enter a parse tree produced by not_().
The default implementation does nothing.
Declaration
public virtual void EnterNot_(lolcodeParser.Not_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_Context | context | The parse tree. |
EnterNot_equals(lolcodeParser.Not_equalsContext)
Enter a parse tree produced by not_equals().
The default implementation does nothing.
Declaration
public virtual void EnterNot_equals(lolcodeParser.Not_equalsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_equalsContext | context | The parse tree. |
EnterPrint_block(lolcodeParser.Print_blockContext)
Enter a parse tree produced by print_block().
The default implementation does nothing.
Declaration
public virtual void EnterPrint_block(lolcodeParser.Print_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Print_blockContext | context | The parse tree. |
EnterProgram(lolcodeParser.ProgramContext)
Enter a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void EnterProgram(lolcodeParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ProgramContext | context | The parse tree. |
EnterStatement(lolcodeParser.StatementContext)
Enter a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void EnterStatement(lolcodeParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.StatementContext | context | The parse tree. |
EnterSub(lolcodeParser.SubContext)
Enter a parse tree produced by sub().
The default implementation does nothing.
Declaration
public virtual void EnterSub(lolcodeParser.SubContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.SubContext | context | The parse tree. |
ExitAdd(lolcodeParser.AddContext)
Exit a parse tree produced by add().
The default implementation does nothing.
Declaration
public virtual void ExitAdd(lolcodeParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AddContext | context | The parse tree. |
ExitAll_(lolcodeParser.All_Context)
Exit a parse tree produced by all_().
The default implementation does nothing.
Declaration
public virtual void ExitAll_(lolcodeParser.All_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.All_Context | context | The parse tree. |
ExitAny_(lolcodeParser.Any_Context)
Exit a parse tree produced by any_().
The default implementation does nothing.
Declaration
public virtual void ExitAny_(lolcodeParser.Any_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Any_Context | context | The parse tree. |
ExitAssignment(lolcodeParser.AssignmentContext)
Exit a parse tree produced by assignment().
The default implementation does nothing.
Declaration
public virtual void ExitAssignment(lolcodeParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.AssignmentContext | context | The parse tree. |
ExitBoth(lolcodeParser.BothContext)
Exit a parse tree produced by both().
The default implementation does nothing.
Declaration
public virtual void ExitBoth(lolcodeParser.BothContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.BothContext | context | The parse tree. |
ExitCast(lolcodeParser.CastContext)
Exit a parse tree produced by cast().
The default implementation does nothing.
Declaration
public virtual void ExitCast(lolcodeParser.CastContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CastContext | context | The parse tree. |
ExitCode_block(lolcodeParser.Code_blockContext)
Exit a parse tree produced by code_block().
The default implementation does nothing.
Declaration
public virtual void ExitCode_block(lolcodeParser.Code_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Code_blockContext | context | The parse tree. |
ExitComment(lolcodeParser.CommentContext)
Exit a parse tree produced by comment().
The default implementation does nothing.
Declaration
public virtual void ExitComment(lolcodeParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.CommentContext | context | The parse tree. |
ExitDeclaration(lolcodeParser.DeclarationContext)
Exit a parse tree produced by declaration().
The default implementation does nothing.
Declaration
public virtual void ExitDeclaration(lolcodeParser.DeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DeclarationContext | context | The parse tree. |
ExitDiv(lolcodeParser.DivContext)
Exit a parse tree produced by div().
The default implementation does nothing.
Declaration
public virtual void ExitDiv(lolcodeParser.DivContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.DivContext | context | The parse tree. |
ExitEither(lolcodeParser.EitherContext)
Exit a parse tree produced by either().
The default implementation does nothing.
Declaration
public virtual void ExitEither(lolcodeParser.EitherContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EitherContext | context | The parse tree. |
ExitElse_if_block(lolcodeParser.Else_if_blockContext)
Exit a parse tree produced by else_if_block().
The default implementation does nothing.
Declaration
public virtual void ExitElse_if_block(lolcodeParser.Else_if_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Else_if_blockContext | context | The parse tree. |
ExitEquals(lolcodeParser.EqualsContext)
Exit a parse tree produced by equals().
The default implementation does nothing.
Declaration
public virtual void ExitEquals(lolcodeParser.EqualsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.EqualsContext | 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(lolcodeParser.ExpressionContext)
Exit a parse tree produced by expression().
The default implementation does nothing.
Declaration
public virtual void ExitExpression(lolcodeParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ExpressionContext | context | The parse tree. |
ExitFunc_(lolcodeParser.Func_Context)
Exit a parse tree produced by func_().
The default implementation does nothing.
Declaration
public virtual void ExitFunc_(lolcodeParser.Func_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_Context | context | The parse tree. |
ExitFunc_decl(lolcodeParser.Func_declContext)
Exit a parse tree produced by func_decl().
The default implementation does nothing.
Declaration
public virtual void ExitFunc_decl(lolcodeParser.Func_declContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Func_declContext | context | The parse tree. |
ExitGreater(lolcodeParser.GreaterContext)
Exit a parse tree produced by greater().
The default implementation does nothing.
Declaration
public virtual void ExitGreater(lolcodeParser.GreaterContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.GreaterContext | context | The parse tree. |
ExitIf_block(lolcodeParser.If_blockContext)
Exit a parse tree produced by if_block().
The default implementation does nothing.
Declaration
public virtual void ExitIf_block(lolcodeParser.If_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.If_blockContext | context | The parse tree. |
ExitInput_block(lolcodeParser.Input_blockContext)
Exit a parse tree produced by input_block().
The default implementation does nothing.
Declaration
public virtual void ExitInput_block(lolcodeParser.Input_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Input_blockContext | context | The parse tree. |
ExitLess(lolcodeParser.LessContext)
Exit a parse tree produced by less().
The default implementation does nothing.
Declaration
public virtual void ExitLess(lolcodeParser.LessContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LessContext | context | The parse tree. |
ExitLoop(lolcodeParser.LoopContext)
Exit a parse tree produced by loop().
The default implementation does nothing.
Declaration
public virtual void ExitLoop(lolcodeParser.LoopContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.LoopContext | context | The parse tree. |
ExitMod(lolcodeParser.ModContext)
Exit a parse tree produced by mod().
The default implementation does nothing.
Declaration
public virtual void ExitMod(lolcodeParser.ModContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ModContext | context | The parse tree. |
ExitMul(lolcodeParser.MulContext)
Exit a parse tree produced by mul().
The default implementation does nothing.
Declaration
public virtual void ExitMul(lolcodeParser.MulContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.MulContext | context | The parse tree. |
ExitNot_(lolcodeParser.Not_Context)
Exit a parse tree produced by not_().
The default implementation does nothing.
Declaration
public virtual void ExitNot_(lolcodeParser.Not_Context context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_Context | context | The parse tree. |
ExitNot_equals(lolcodeParser.Not_equalsContext)
Exit a parse tree produced by not_equals().
The default implementation does nothing.
Declaration
public virtual void ExitNot_equals(lolcodeParser.Not_equalsContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Not_equalsContext | context | The parse tree. |
ExitPrint_block(lolcodeParser.Print_blockContext)
Exit a parse tree produced by print_block().
The default implementation does nothing.
Declaration
public virtual void ExitPrint_block(lolcodeParser.Print_blockContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.Print_blockContext | context | The parse tree. |
ExitProgram(lolcodeParser.ProgramContext)
Exit a parse tree produced by program().
The default implementation does nothing.
Declaration
public virtual void ExitProgram(lolcodeParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.ProgramContext | context | The parse tree. |
ExitStatement(lolcodeParser.StatementContext)
Exit a parse tree produced by statement().
The default implementation does nothing.
Declaration
public virtual void ExitStatement(lolcodeParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.StatementContext | context | The parse tree. |
ExitSub(lolcodeParser.SubContext)
Exit a parse tree produced by sub().
The default implementation does nothing.
Declaration
public virtual void ExitSub(lolcodeParser.SubContext context)
Parameters
Type | Name | Description |
---|---|---|
lolcodeParser.SubContext | 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.