public interface CalculatorListener
extends org.antlr.v4.runtime.tree.ParseTreeListener
CalculatorParser.| Modifier and Type | Method and Description |
|---|---|
void |
enterAddSub(CalculatorParser.AddSubContext ctx)
Enter a parse tree produced by the
AddSub
labeled alternative in CalculatorParser.expr(). |
void |
enterAssign(CalculatorParser.AssignContext ctx)
Enter a parse tree produced by the
assign
labeled alternative in CalculatorParser.statement(). |
void |
enterBlank(CalculatorParser.BlankContext ctx)
Enter a parse tree produced by the
blank
labeled alternative in CalculatorParser.statement(). |
void |
enterId(CalculatorParser.IdContext ctx)
Enter a parse tree produced by the
id
labeled alternative in CalculatorParser.expr(). |
void |
enterInt(CalculatorParser.IntContext ctx)
Enter a parse tree produced by the
int
labeled alternative in CalculatorParser.expr(). |
void |
enterMulDiv(CalculatorParser.MulDivContext ctx)
Enter a parse tree produced by the
MulDiv
labeled alternative in CalculatorParser.expr(). |
void |
enterParenthese(CalculatorParser.ParentheseContext ctx)
Enter a parse tree produced by the
parenthese
labeled alternative in CalculatorParser.expr(). |
void |
enterPrint(CalculatorParser.PrintContext ctx)
Enter a parse tree produced by the
print
labeled alternative in CalculatorParser.statement(). |
void |
enterProgram(CalculatorParser.ProgramContext ctx)
Enter a parse tree produced by
CalculatorParser.program(). |
void |
exitAddSub(CalculatorParser.AddSubContext ctx)
Exit a parse tree produced by the
AddSub
labeled alternative in CalculatorParser.expr(). |
void |
exitAssign(CalculatorParser.AssignContext ctx)
Exit a parse tree produced by the
assign
labeled alternative in CalculatorParser.statement(). |
void |
exitBlank(CalculatorParser.BlankContext ctx)
Exit a parse tree produced by the
blank
labeled alternative in CalculatorParser.statement(). |
void |
exitId(CalculatorParser.IdContext ctx)
Exit a parse tree produced by the
id
labeled alternative in CalculatorParser.expr(). |
void |
exitInt(CalculatorParser.IntContext ctx)
Exit a parse tree produced by the
int
labeled alternative in CalculatorParser.expr(). |
void |
exitMulDiv(CalculatorParser.MulDivContext ctx)
Exit a parse tree produced by the
MulDiv
labeled alternative in CalculatorParser.expr(). |
void |
exitParenthese(CalculatorParser.ParentheseContext ctx)
Exit a parse tree produced by the
parenthese
labeled alternative in CalculatorParser.expr(). |
void |
exitPrint(CalculatorParser.PrintContext ctx)
Exit a parse tree produced by the
print
labeled alternative in CalculatorParser.statement(). |
void |
exitProgram(CalculatorParser.ProgramContext ctx)
Exit a parse tree produced by
CalculatorParser.program(). |
void enterProgram(CalculatorParser.ProgramContext ctx)
CalculatorParser.program().ctx - the parse treevoid exitProgram(CalculatorParser.ProgramContext ctx)
CalculatorParser.program().ctx - the parse treevoid enterPrint(CalculatorParser.PrintContext ctx)
print
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid exitPrint(CalculatorParser.PrintContext ctx)
print
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid enterAssign(CalculatorParser.AssignContext ctx)
assign
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid exitAssign(CalculatorParser.AssignContext ctx)
assign
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid enterBlank(CalculatorParser.BlankContext ctx)
blank
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid exitBlank(CalculatorParser.BlankContext ctx)
blank
labeled alternative in CalculatorParser.statement().ctx - the parse treevoid enterMulDiv(CalculatorParser.MulDivContext ctx)
MulDiv
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid exitMulDiv(CalculatorParser.MulDivContext ctx)
MulDiv
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid enterAddSub(CalculatorParser.AddSubContext ctx)
AddSub
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid exitAddSub(CalculatorParser.AddSubContext ctx)
AddSub
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid enterParenthese(CalculatorParser.ParentheseContext ctx)
parenthese
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid exitParenthese(CalculatorParser.ParentheseContext ctx)
parenthese
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid enterId(CalculatorParser.IdContext ctx)
id
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid exitId(CalculatorParser.IdContext ctx)
id
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid enterInt(CalculatorParser.IntContext ctx)
int
labeled alternative in CalculatorParser.expr().ctx - the parse treevoid exitInt(CalculatorParser.IntContext ctx)
int
labeled alternative in CalculatorParser.expr().ctx - the parse treeCopyright © 2025. All rights reserved.