Show / Hide Table of Contents

Class COOLBaseListener

This class provides an empty implementation of ICOOLListener, which can be extended to create a listener which only needs to handle a subset of the available methods.

Inheritance
System.Object
COOLBaseListener
Implements
ICOOLListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Cool
Assembly: Cool.dll
Syntax
public class COOLBaseListener : object, ICOOLListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterAdd(COOLParser.AddContext)

Enter a parse tree produced by the add labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterAdd(COOLParser.AddContext context)
Parameters
Type Name Description
COOLParser.AddContext context

The parse tree.

| Improve this Doc View Source

EnterAssignment(COOLParser.AssignmentContext)

Enter a parse tree produced by the assignment labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterAssignment(COOLParser.AssignmentContext context)
Parameters
Type Name Description
COOLParser.AssignmentContext context

The parse tree.

| Improve this Doc View Source

EnterBlock(COOLParser.BlockContext)

Enter a parse tree produced by the block labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterBlock(COOLParser.BlockContext context)
Parameters
Type Name Description
COOLParser.BlockContext context

The parse tree.

| Improve this Doc View Source

EnterBoolNot(COOLParser.BoolNotContext)

Enter a parse tree produced by the boolNot labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterBoolNot(COOLParser.BoolNotContext context)
Parameters
Type Name Description
COOLParser.BoolNotContext context

The parse tree.

| Improve this Doc View Source

EnterCase(COOLParser.CaseContext)

Enter a parse tree produced by the case labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterCase(COOLParser.CaseContext context)
Parameters
Type Name Description
COOLParser.CaseContext context

The parse tree.

| Improve this Doc View Source

EnterClassDefine(COOLParser.ClassDefineContext)

Enter a parse tree produced by classDefine().

The default implementation does nothing.

Declaration
public virtual void EnterClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type Name Description
COOLParser.ClassDefineContext context

The parse tree.

| Improve this Doc View Source

EnterClasses(COOLParser.ClassesContext)

Enter a parse tree produced by the classes labeled alternative in programBlocks().

The default implementation does nothing.

Declaration
public virtual void EnterClasses(COOLParser.ClassesContext context)
Parameters
Type Name Description
COOLParser.ClassesContext context

The parse tree.

| Improve this Doc View Source

EnterDivision(COOLParser.DivisionContext)

Enter a parse tree produced by the division labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterDivision(COOLParser.DivisionContext context)
Parameters
Type Name Description
COOLParser.DivisionContext context

The parse tree.

| Improve this Doc View Source

EnterEof(COOLParser.EofContext)

Enter a parse tree produced by the eof labeled alternative in programBlocks().

The default implementation does nothing.

Declaration
public virtual void EnterEof(COOLParser.EofContext context)
Parameters
Type Name Description
COOLParser.EofContext context

The parse tree.

| Improve this Doc View Source

EnterEqual(COOLParser.EqualContext)

Enter a parse tree produced by the equal labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterEqual(COOLParser.EqualContext context)
Parameters
Type Name Description
COOLParser.EqualContext 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

EnterFalse(COOLParser.FalseContext)

Enter a parse tree produced by the false labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterFalse(COOLParser.FalseContext context)
Parameters
Type Name Description
COOLParser.FalseContext context

The parse tree.

| Improve this Doc View Source

EnterFormal(COOLParser.FormalContext)

Enter a parse tree produced by formal().

The default implementation does nothing.

Declaration
public virtual void EnterFormal(COOLParser.FormalContext context)
Parameters
Type Name Description
COOLParser.FormalContext context

The parse tree.

| Improve this Doc View Source

EnterId(COOLParser.IdContext)

Enter a parse tree produced by the id labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterId(COOLParser.IdContext context)
Parameters
Type Name Description
COOLParser.IdContext context

The parse tree.

| Improve this Doc View Source

EnterIf(COOLParser.IfContext)

Enter a parse tree produced by the if labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterIf(COOLParser.IfContext context)
Parameters
Type Name Description
COOLParser.IfContext context

The parse tree.

| Improve this Doc View Source

EnterInt(COOLParser.IntContext)

Enter a parse tree produced by the int labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterInt(COOLParser.IntContext context)
Parameters
Type Name Description
COOLParser.IntContext context

The parse tree.

| Improve this Doc View Source

EnterIsvoid(COOLParser.IsvoidContext)

Enter a parse tree produced by the isvoid labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterIsvoid(COOLParser.IsvoidContext context)
Parameters
Type Name Description
COOLParser.IsvoidContext context

The parse tree.

| Improve this Doc View Source

EnterLessEqual(COOLParser.LessEqualContext)

Enter a parse tree produced by the lessEqual labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterLessEqual(COOLParser.LessEqualContext context)
Parameters
Type Name Description
COOLParser.LessEqualContext context

The parse tree.

| Improve this Doc View Source

EnterLessThan(COOLParser.LessThanContext)

Enter a parse tree produced by the lessThan labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterLessThan(COOLParser.LessThanContext context)
Parameters
Type Name Description
COOLParser.LessThanContext context

The parse tree.

| Improve this Doc View Source

EnterLetIn(COOLParser.LetInContext)

Enter a parse tree produced by the letIn labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterLetIn(COOLParser.LetInContext context)
Parameters
Type Name Description
COOLParser.LetInContext context

The parse tree.

| Improve this Doc View Source

EnterMethod(COOLParser.MethodContext)

Enter a parse tree produced by the method labeled alternative in feature().

The default implementation does nothing.

Declaration
public virtual void EnterMethod(COOLParser.MethodContext context)
Parameters
Type Name Description
COOLParser.MethodContext context

The parse tree.

| Improve this Doc View Source

EnterMethodCall(COOLParser.MethodCallContext)

Enter a parse tree produced by the methodCall labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterMethodCall(COOLParser.MethodCallContext context)
Parameters
Type Name Description
COOLParser.MethodCallContext context

The parse tree.

| Improve this Doc View Source

EnterMinus(COOLParser.MinusContext)

Enter a parse tree produced by the minus labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterMinus(COOLParser.MinusContext context)
Parameters
Type Name Description
COOLParser.MinusContext context

The parse tree.

| Improve this Doc View Source

EnterMultiply(COOLParser.MultiplyContext)

Enter a parse tree produced by the multiply labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterMultiply(COOLParser.MultiplyContext context)
Parameters
Type Name Description
COOLParser.MultiplyContext context

The parse tree.

| Improve this Doc View Source

EnterNegative(COOLParser.NegativeContext)

Enter a parse tree produced by the negative labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterNegative(COOLParser.NegativeContext context)
Parameters
Type Name Description
COOLParser.NegativeContext context

The parse tree.

| Improve this Doc View Source

EnterNew(COOLParser.NewContext)

Enter a parse tree produced by the new labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterNew(COOLParser.NewContext context)
Parameters
Type Name Description
COOLParser.NewContext context

The parse tree.

| Improve this Doc View Source

EnterOwnMethodCall(COOLParser.OwnMethodCallContext)

Enter a parse tree produced by the ownMethodCall labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type Name Description
COOLParser.OwnMethodCallContext context

The parse tree.

| Improve this Doc View Source

EnterParentheses(COOLParser.ParenthesesContext)

Enter a parse tree produced by the parentheses labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterParentheses(COOLParser.ParenthesesContext context)
Parameters
Type Name Description
COOLParser.ParenthesesContext context

The parse tree.

| Improve this Doc View Source

EnterProgram(COOLParser.ProgramContext)

Enter a parse tree produced by program().

The default implementation does nothing.

Declaration
public virtual void EnterProgram(COOLParser.ProgramContext context)
Parameters
Type Name Description
COOLParser.ProgramContext context

The parse tree.

| Improve this Doc View Source

EnterProperty(COOLParser.PropertyContext)

Enter a parse tree produced by the property labeled alternative in feature().

The default implementation does nothing.

Declaration
public virtual void EnterProperty(COOLParser.PropertyContext context)
Parameters
Type Name Description
COOLParser.PropertyContext context

The parse tree.

| Improve this Doc View Source

EnterString(COOLParser.StringContext)

Enter a parse tree produced by the string labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterString(COOLParser.StringContext context)
Parameters
Type Name Description
COOLParser.StringContext context

The parse tree.

| Improve this Doc View Source

EnterTrue(COOLParser.TrueContext)

Enter a parse tree produced by the true labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterTrue(COOLParser.TrueContext context)
Parameters
Type Name Description
COOLParser.TrueContext context

The parse tree.

| Improve this Doc View Source

EnterWhile(COOLParser.WhileContext)

Enter a parse tree produced by the while labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void EnterWhile(COOLParser.WhileContext context)
Parameters
Type Name Description
COOLParser.WhileContext context

The parse tree.

| Improve this Doc View Source

ExitAdd(COOLParser.AddContext)

Exit a parse tree produced by the add labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitAdd(COOLParser.AddContext context)
Parameters
Type Name Description
COOLParser.AddContext context

The parse tree.

| Improve this Doc View Source

ExitAssignment(COOLParser.AssignmentContext)

Exit a parse tree produced by the assignment labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitAssignment(COOLParser.AssignmentContext context)
Parameters
Type Name Description
COOLParser.AssignmentContext context

The parse tree.

| Improve this Doc View Source

ExitBlock(COOLParser.BlockContext)

Exit a parse tree produced by the block labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitBlock(COOLParser.BlockContext context)
Parameters
Type Name Description
COOLParser.BlockContext context

The parse tree.

| Improve this Doc View Source

ExitBoolNot(COOLParser.BoolNotContext)

Exit a parse tree produced by the boolNot labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitBoolNot(COOLParser.BoolNotContext context)
Parameters
Type Name Description
COOLParser.BoolNotContext context

The parse tree.

| Improve this Doc View Source

ExitCase(COOLParser.CaseContext)

Exit a parse tree produced by the case labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitCase(COOLParser.CaseContext context)
Parameters
Type Name Description
COOLParser.CaseContext context

The parse tree.

| Improve this Doc View Source

ExitClassDefine(COOLParser.ClassDefineContext)

Exit a parse tree produced by classDefine().

The default implementation does nothing.

Declaration
public virtual void ExitClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type Name Description
COOLParser.ClassDefineContext context

The parse tree.

| Improve this Doc View Source

ExitClasses(COOLParser.ClassesContext)

Exit a parse tree produced by the classes labeled alternative in programBlocks().

The default implementation does nothing.

Declaration
public virtual void ExitClasses(COOLParser.ClassesContext context)
Parameters
Type Name Description
COOLParser.ClassesContext context

The parse tree.

| Improve this Doc View Source

ExitDivision(COOLParser.DivisionContext)

Exit a parse tree produced by the division labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitDivision(COOLParser.DivisionContext context)
Parameters
Type Name Description
COOLParser.DivisionContext context

The parse tree.

| Improve this Doc View Source

ExitEof(COOLParser.EofContext)

Exit a parse tree produced by the eof labeled alternative in programBlocks().

The default implementation does nothing.

Declaration
public virtual void ExitEof(COOLParser.EofContext context)
Parameters
Type Name Description
COOLParser.EofContext context

The parse tree.

| Improve this Doc View Source

ExitEqual(COOLParser.EqualContext)

Exit a parse tree produced by the equal labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitEqual(COOLParser.EqualContext context)
Parameters
Type Name Description
COOLParser.EqualContext 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

ExitFalse(COOLParser.FalseContext)

Exit a parse tree produced by the false labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitFalse(COOLParser.FalseContext context)
Parameters
Type Name Description
COOLParser.FalseContext context

The parse tree.

| Improve this Doc View Source

ExitFormal(COOLParser.FormalContext)

Exit a parse tree produced by formal().

The default implementation does nothing.

Declaration
public virtual void ExitFormal(COOLParser.FormalContext context)
Parameters
Type Name Description
COOLParser.FormalContext context

The parse tree.

| Improve this Doc View Source

ExitId(COOLParser.IdContext)

Exit a parse tree produced by the id labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitId(COOLParser.IdContext context)
Parameters
Type Name Description
COOLParser.IdContext context

The parse tree.

| Improve this Doc View Source

ExitIf(COOLParser.IfContext)

Exit a parse tree produced by the if labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitIf(COOLParser.IfContext context)
Parameters
Type Name Description
COOLParser.IfContext context

The parse tree.

| Improve this Doc View Source

ExitInt(COOLParser.IntContext)

Exit a parse tree produced by the int labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitInt(COOLParser.IntContext context)
Parameters
Type Name Description
COOLParser.IntContext context

The parse tree.

| Improve this Doc View Source

ExitIsvoid(COOLParser.IsvoidContext)

Exit a parse tree produced by the isvoid labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitIsvoid(COOLParser.IsvoidContext context)
Parameters
Type Name Description
COOLParser.IsvoidContext context

The parse tree.

| Improve this Doc View Source

ExitLessEqual(COOLParser.LessEqualContext)

Exit a parse tree produced by the lessEqual labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitLessEqual(COOLParser.LessEqualContext context)
Parameters
Type Name Description
COOLParser.LessEqualContext context

The parse tree.

| Improve this Doc View Source

ExitLessThan(COOLParser.LessThanContext)

Exit a parse tree produced by the lessThan labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitLessThan(COOLParser.LessThanContext context)
Parameters
Type Name Description
COOLParser.LessThanContext context

The parse tree.

| Improve this Doc View Source

ExitLetIn(COOLParser.LetInContext)

Exit a parse tree produced by the letIn labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitLetIn(COOLParser.LetInContext context)
Parameters
Type Name Description
COOLParser.LetInContext context

The parse tree.

| Improve this Doc View Source

ExitMethod(COOLParser.MethodContext)

Exit a parse tree produced by the method labeled alternative in feature().

The default implementation does nothing.

Declaration
public virtual void ExitMethod(COOLParser.MethodContext context)
Parameters
Type Name Description
COOLParser.MethodContext context

The parse tree.

| Improve this Doc View Source

ExitMethodCall(COOLParser.MethodCallContext)

Exit a parse tree produced by the methodCall labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitMethodCall(COOLParser.MethodCallContext context)
Parameters
Type Name Description
COOLParser.MethodCallContext context

The parse tree.

| Improve this Doc View Source

ExitMinus(COOLParser.MinusContext)

Exit a parse tree produced by the minus labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitMinus(COOLParser.MinusContext context)
Parameters
Type Name Description
COOLParser.MinusContext context

The parse tree.

| Improve this Doc View Source

ExitMultiply(COOLParser.MultiplyContext)

Exit a parse tree produced by the multiply labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitMultiply(COOLParser.MultiplyContext context)
Parameters
Type Name Description
COOLParser.MultiplyContext context

The parse tree.

| Improve this Doc View Source

ExitNegative(COOLParser.NegativeContext)

Exit a parse tree produced by the negative labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitNegative(COOLParser.NegativeContext context)
Parameters
Type Name Description
COOLParser.NegativeContext context

The parse tree.

| Improve this Doc View Source

ExitNew(COOLParser.NewContext)

Exit a parse tree produced by the new labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitNew(COOLParser.NewContext context)
Parameters
Type Name Description
COOLParser.NewContext context

The parse tree.

| Improve this Doc View Source

ExitOwnMethodCall(COOLParser.OwnMethodCallContext)

Exit a parse tree produced by the ownMethodCall labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type Name Description
COOLParser.OwnMethodCallContext context

The parse tree.

| Improve this Doc View Source

ExitParentheses(COOLParser.ParenthesesContext)

Exit a parse tree produced by the parentheses labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitParentheses(COOLParser.ParenthesesContext context)
Parameters
Type Name Description
COOLParser.ParenthesesContext context

The parse tree.

| Improve this Doc View Source

ExitProgram(COOLParser.ProgramContext)

Exit a parse tree produced by program().

The default implementation does nothing.

Declaration
public virtual void ExitProgram(COOLParser.ProgramContext context)
Parameters
Type Name Description
COOLParser.ProgramContext context

The parse tree.

| Improve this Doc View Source

ExitProperty(COOLParser.PropertyContext)

Exit a parse tree produced by the property labeled alternative in feature().

The default implementation does nothing.

Declaration
public virtual void ExitProperty(COOLParser.PropertyContext context)
Parameters
Type Name Description
COOLParser.PropertyContext context

The parse tree.

| Improve this Doc View Source

ExitString(COOLParser.StringContext)

Exit a parse tree produced by the string labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitString(COOLParser.StringContext context)
Parameters
Type Name Description
COOLParser.StringContext context

The parse tree.

| Improve this Doc View Source

ExitTrue(COOLParser.TrueContext)

Exit a parse tree produced by the true labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitTrue(COOLParser.TrueContext context)
Parameters
Type Name Description
COOLParser.TrueContext context

The parse tree.

| Improve this Doc View Source

ExitWhile(COOLParser.WhileContext)

Exit a parse tree produced by the while labeled alternative in expression().

The default implementation does nothing.

Declaration
public virtual void ExitWhile(COOLParser.WhileContext context)
Parameters
Type Name Description
COOLParser.WhileContext 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

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