Show / Hide Table of Contents

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
System.Object
lolcodeBaseListener
Implements
IlolcodeListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Lolcode
Assembly: Lolcode.dll
Syntax
public class lolcodeBaseListener : object, IlolcodeListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterAdd(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IlolcodeListener
Antlr4.Runtime.Tree.IParseTreeListener
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX