Interface ICOOLListener
This interface defines a complete listener for a parse tree produced by COOLParser.
Namespace: GCore.Antlr.Grammers.Cool
Assembly: Cool.dll
Syntax
public interface ICOOLListener : Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAdd(COOLParser.AddContext)
Enter a parse tree produced by the add
labeled alternative in expression().
Declaration
void EnterAdd(COOLParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AddContext | context | The parse tree. |
EnterAssignment(COOLParser.AssignmentContext)
Enter a parse tree produced by the assignment
labeled alternative in expression().
Declaration
void EnterAssignment(COOLParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AssignmentContext | context | The parse tree. |
EnterBlock(COOLParser.BlockContext)
Enter a parse tree produced by the block
labeled alternative in expression().
Declaration
void EnterBlock(COOLParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BlockContext | context | The parse tree. |
EnterBoolNot(COOLParser.BoolNotContext)
Enter a parse tree produced by the boolNot
labeled alternative in expression().
Declaration
void EnterBoolNot(COOLParser.BoolNotContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BoolNotContext | context | The parse tree. |
EnterCase(COOLParser.CaseContext)
Enter a parse tree produced by the case
labeled alternative in expression().
Declaration
void EnterCase(COOLParser.CaseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.CaseContext | context | The parse tree. |
EnterClassDefine(COOLParser.ClassDefineContext)
Enter a parse tree produced by classDefine().
Declaration
void EnterClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassDefineContext | context | The parse tree. |
EnterClasses(COOLParser.ClassesContext)
Enter a parse tree produced by the classes
labeled alternative in programBlocks().
Declaration
void EnterClasses(COOLParser.ClassesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassesContext | context | The parse tree. |
EnterDivision(COOLParser.DivisionContext)
Enter a parse tree produced by the division
labeled alternative in expression().
Declaration
void EnterDivision(COOLParser.DivisionContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.DivisionContext | context | The parse tree. |
EnterEof(COOLParser.EofContext)
Enter a parse tree produced by the eof
labeled alternative in programBlocks().
Declaration
void EnterEof(COOLParser.EofContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EofContext | context | The parse tree. |
EnterEqual(COOLParser.EqualContext)
Enter a parse tree produced by the equal
labeled alternative in expression().
Declaration
void EnterEqual(COOLParser.EqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EqualContext | context | The parse tree. |
EnterFalse(COOLParser.FalseContext)
Enter a parse tree produced by the false
labeled alternative in expression().
Declaration
void EnterFalse(COOLParser.FalseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FalseContext | context | The parse tree. |
EnterFormal(COOLParser.FormalContext)
Enter a parse tree produced by formal().
Declaration
void EnterFormal(COOLParser.FormalContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FormalContext | context | The parse tree. |
EnterId(COOLParser.IdContext)
Enter a parse tree produced by the id
labeled alternative in expression().
Declaration
void EnterId(COOLParser.IdContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IdContext | context | The parse tree. |
EnterIf(COOLParser.IfContext)
Enter a parse tree produced by the if
labeled alternative in expression().
Declaration
void EnterIf(COOLParser.IfContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IfContext | context | The parse tree. |
EnterInt(COOLParser.IntContext)
Enter a parse tree produced by the int
labeled alternative in expression().
Declaration
void EnterInt(COOLParser.IntContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IntContext | context | The parse tree. |
EnterIsvoid(COOLParser.IsvoidContext)
Enter a parse tree produced by the isvoid
labeled alternative in expression().
Declaration
void EnterIsvoid(COOLParser.IsvoidContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IsvoidContext | context | The parse tree. |
EnterLessEqual(COOLParser.LessEqualContext)
Enter a parse tree produced by the lessEqual
labeled alternative in expression().
Declaration
void EnterLessEqual(COOLParser.LessEqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessEqualContext | context | The parse tree. |
EnterLessThan(COOLParser.LessThanContext)
Enter a parse tree produced by the lessThan
labeled alternative in expression().
Declaration
void EnterLessThan(COOLParser.LessThanContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessThanContext | context | The parse tree. |
EnterLetIn(COOLParser.LetInContext)
Enter a parse tree produced by the letIn
labeled alternative in expression().
Declaration
void EnterLetIn(COOLParser.LetInContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LetInContext | context | The parse tree. |
EnterMethod(COOLParser.MethodContext)
Enter a parse tree produced by the method
labeled alternative in feature().
Declaration
void EnterMethod(COOLParser.MethodContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodContext | context | The parse tree. |
EnterMethodCall(COOLParser.MethodCallContext)
Enter a parse tree produced by the methodCall
labeled alternative in expression().
Declaration
void EnterMethodCall(COOLParser.MethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodCallContext | context | The parse tree. |
EnterMinus(COOLParser.MinusContext)
Enter a parse tree produced by the minus
labeled alternative in expression().
Declaration
void EnterMinus(COOLParser.MinusContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MinusContext | context | The parse tree. |
EnterMultiply(COOLParser.MultiplyContext)
Enter a parse tree produced by the multiply
labeled alternative in expression().
Declaration
void EnterMultiply(COOLParser.MultiplyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MultiplyContext | context | The parse tree. |
EnterNegative(COOLParser.NegativeContext)
Enter a parse tree produced by the negative
labeled alternative in expression().
Declaration
void EnterNegative(COOLParser.NegativeContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NegativeContext | context | The parse tree. |
EnterNew(COOLParser.NewContext)
Enter a parse tree produced by the new
labeled alternative in expression().
Declaration
void EnterNew(COOLParser.NewContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NewContext | context | The parse tree. |
EnterOwnMethodCall(COOLParser.OwnMethodCallContext)
Enter a parse tree produced by the ownMethodCall
labeled alternative in expression().
Declaration
void EnterOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.OwnMethodCallContext | context | The parse tree. |
EnterParentheses(COOLParser.ParenthesesContext)
Enter a parse tree produced by the parentheses
labeled alternative in expression().
Declaration
void EnterParentheses(COOLParser.ParenthesesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ParenthesesContext | context | The parse tree. |
EnterProgram(COOLParser.ProgramContext)
Enter a parse tree produced by program().
Declaration
void EnterProgram(COOLParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ProgramContext | context | The parse tree. |
EnterProperty(COOLParser.PropertyContext)
Enter a parse tree produced by the property
labeled alternative in feature().
Declaration
void EnterProperty(COOLParser.PropertyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.PropertyContext | context | The parse tree. |
EnterString(COOLParser.StringContext)
Enter a parse tree produced by the string
labeled alternative in expression().
Declaration
void EnterString(COOLParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.StringContext | context | The parse tree. |
EnterTrue(COOLParser.TrueContext)
Enter a parse tree produced by the true
labeled alternative in expression().
Declaration
void EnterTrue(COOLParser.TrueContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.TrueContext | context | The parse tree. |
EnterWhile(COOLParser.WhileContext)
Enter a parse tree produced by the while
labeled alternative in expression().
Declaration
void EnterWhile(COOLParser.WhileContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.WhileContext | context | The parse tree. |
ExitAdd(COOLParser.AddContext)
Exit a parse tree produced by the add
labeled alternative in expression().
Declaration
void ExitAdd(COOLParser.AddContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AddContext | context | The parse tree. |
ExitAssignment(COOLParser.AssignmentContext)
Exit a parse tree produced by the assignment
labeled alternative in expression().
Declaration
void ExitAssignment(COOLParser.AssignmentContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.AssignmentContext | context | The parse tree. |
ExitBlock(COOLParser.BlockContext)
Exit a parse tree produced by the block
labeled alternative in expression().
Declaration
void ExitBlock(COOLParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BlockContext | context | The parse tree. |
ExitBoolNot(COOLParser.BoolNotContext)
Exit a parse tree produced by the boolNot
labeled alternative in expression().
Declaration
void ExitBoolNot(COOLParser.BoolNotContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.BoolNotContext | context | The parse tree. |
ExitCase(COOLParser.CaseContext)
Exit a parse tree produced by the case
labeled alternative in expression().
Declaration
void ExitCase(COOLParser.CaseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.CaseContext | context | The parse tree. |
ExitClassDefine(COOLParser.ClassDefineContext)
Exit a parse tree produced by classDefine().
Declaration
void ExitClassDefine(COOLParser.ClassDefineContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassDefineContext | context | The parse tree. |
ExitClasses(COOLParser.ClassesContext)
Exit a parse tree produced by the classes
labeled alternative in programBlocks().
Declaration
void ExitClasses(COOLParser.ClassesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ClassesContext | context | The parse tree. |
ExitDivision(COOLParser.DivisionContext)
Exit a parse tree produced by the division
labeled alternative in expression().
Declaration
void ExitDivision(COOLParser.DivisionContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.DivisionContext | context | The parse tree. |
ExitEof(COOLParser.EofContext)
Exit a parse tree produced by the eof
labeled alternative in programBlocks().
Declaration
void ExitEof(COOLParser.EofContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EofContext | context | The parse tree. |
ExitEqual(COOLParser.EqualContext)
Exit a parse tree produced by the equal
labeled alternative in expression().
Declaration
void ExitEqual(COOLParser.EqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.EqualContext | context | The parse tree. |
ExitFalse(COOLParser.FalseContext)
Exit a parse tree produced by the false
labeled alternative in expression().
Declaration
void ExitFalse(COOLParser.FalseContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FalseContext | context | The parse tree. |
ExitFormal(COOLParser.FormalContext)
Exit a parse tree produced by formal().
Declaration
void ExitFormal(COOLParser.FormalContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.FormalContext | context | The parse tree. |
ExitId(COOLParser.IdContext)
Exit a parse tree produced by the id
labeled alternative in expression().
Declaration
void ExitId(COOLParser.IdContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IdContext | context | The parse tree. |
ExitIf(COOLParser.IfContext)
Exit a parse tree produced by the if
labeled alternative in expression().
Declaration
void ExitIf(COOLParser.IfContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IfContext | context | The parse tree. |
ExitInt(COOLParser.IntContext)
Exit a parse tree produced by the int
labeled alternative in expression().
Declaration
void ExitInt(COOLParser.IntContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IntContext | context | The parse tree. |
ExitIsvoid(COOLParser.IsvoidContext)
Exit a parse tree produced by the isvoid
labeled alternative in expression().
Declaration
void ExitIsvoid(COOLParser.IsvoidContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.IsvoidContext | context | The parse tree. |
ExitLessEqual(COOLParser.LessEqualContext)
Exit a parse tree produced by the lessEqual
labeled alternative in expression().
Declaration
void ExitLessEqual(COOLParser.LessEqualContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessEqualContext | context | The parse tree. |
ExitLessThan(COOLParser.LessThanContext)
Exit a parse tree produced by the lessThan
labeled alternative in expression().
Declaration
void ExitLessThan(COOLParser.LessThanContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LessThanContext | context | The parse tree. |
ExitLetIn(COOLParser.LetInContext)
Exit a parse tree produced by the letIn
labeled alternative in expression().
Declaration
void ExitLetIn(COOLParser.LetInContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.LetInContext | context | The parse tree. |
ExitMethod(COOLParser.MethodContext)
Exit a parse tree produced by the method
labeled alternative in feature().
Declaration
void ExitMethod(COOLParser.MethodContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodContext | context | The parse tree. |
ExitMethodCall(COOLParser.MethodCallContext)
Exit a parse tree produced by the methodCall
labeled alternative in expression().
Declaration
void ExitMethodCall(COOLParser.MethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MethodCallContext | context | The parse tree. |
ExitMinus(COOLParser.MinusContext)
Exit a parse tree produced by the minus
labeled alternative in expression().
Declaration
void ExitMinus(COOLParser.MinusContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MinusContext | context | The parse tree. |
ExitMultiply(COOLParser.MultiplyContext)
Exit a parse tree produced by the multiply
labeled alternative in expression().
Declaration
void ExitMultiply(COOLParser.MultiplyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.MultiplyContext | context | The parse tree. |
ExitNegative(COOLParser.NegativeContext)
Exit a parse tree produced by the negative
labeled alternative in expression().
Declaration
void ExitNegative(COOLParser.NegativeContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NegativeContext | context | The parse tree. |
ExitNew(COOLParser.NewContext)
Exit a parse tree produced by the new
labeled alternative in expression().
Declaration
void ExitNew(COOLParser.NewContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.NewContext | context | The parse tree. |
ExitOwnMethodCall(COOLParser.OwnMethodCallContext)
Exit a parse tree produced by the ownMethodCall
labeled alternative in expression().
Declaration
void ExitOwnMethodCall(COOLParser.OwnMethodCallContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.OwnMethodCallContext | context | The parse tree. |
ExitParentheses(COOLParser.ParenthesesContext)
Exit a parse tree produced by the parentheses
labeled alternative in expression().
Declaration
void ExitParentheses(COOLParser.ParenthesesContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ParenthesesContext | context | The parse tree. |
ExitProgram(COOLParser.ProgramContext)
Exit a parse tree produced by program().
Declaration
void ExitProgram(COOLParser.ProgramContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.ProgramContext | context | The parse tree. |
ExitProperty(COOLParser.PropertyContext)
Exit a parse tree produced by the property
labeled alternative in feature().
Declaration
void ExitProperty(COOLParser.PropertyContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.PropertyContext | context | The parse tree. |
ExitString(COOLParser.StringContext)
Exit a parse tree produced by the string
labeled alternative in expression().
Declaration
void ExitString(COOLParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.StringContext | context | The parse tree. |
ExitTrue(COOLParser.TrueContext)
Exit a parse tree produced by the true
labeled alternative in expression().
Declaration
void ExitTrue(COOLParser.TrueContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.TrueContext | context | The parse tree. |
ExitWhile(COOLParser.WhileContext)
Exit a parse tree produced by the while
labeled alternative in expression().
Declaration
void ExitWhile(COOLParser.WhileContext context)
Parameters
Type | Name | Description |
---|---|---|
COOLParser.WhileContext | context | The parse tree. |