359 lines
12 KiB
Java
359 lines
12 KiB
Java
package gen;// Generated from C:/Users/dh10krj/OneDrive - Durr Group/Dokumente/S4/Compilerbau/projekt/NichtHaskell/Source/Decaf.g4 by ANTLR 4.13.1
|
|
import org.antlr.v4.runtime.tree.ParseTreeListener;
|
|
|
|
/**
|
|
* This interface defines a complete listener for a parse tree produced by
|
|
* {@link DecafParser}.
|
|
*/
|
|
public interface DecafListener extends ParseTreeListener {
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#program}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterProgram(DecafParser.ProgramContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#program}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitProgram(DecafParser.ProgramContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#classdecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterClassdecl(DecafParser.ClassdeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#classdecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitClassdecl(DecafParser.ClassdeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#constuctorDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterConstuctorDecl(DecafParser.ConstuctorDeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#constuctorDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitConstuctorDecl(DecafParser.ConstuctorDeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#methodDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterMethodDecl(DecafParser.MethodDeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#methodDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitMethodDecl(DecafParser.MethodDeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#fieldDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterFieldDecl(DecafParser.FieldDeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#fieldDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitFieldDecl(DecafParser.FieldDeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#parameterList}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterParameterList(DecafParser.ParameterListContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#parameterList}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitParameterList(DecafParser.ParameterListContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#parameter}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterParameter(DecafParser.ParameterContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#parameter}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitParameter(DecafParser.ParameterContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#expression}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterExpression(DecafParser.ExpressionContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#expression}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitExpression(DecafParser.ExpressionContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#subExpression}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterSubExpression(DecafParser.SubExpressionContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#subExpression}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitSubExpression(DecafParser.SubExpressionContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#assignableExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterAssignableExpr(DecafParser.AssignableExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#assignableExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitAssignableExpr(DecafParser.AssignableExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#instVar}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterInstVar(DecafParser.InstVarContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#instVar}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitInstVar(DecafParser.InstVarContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#methodCall}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterMethodCall(DecafParser.MethodCallContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#methodCall}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitMethodCall(DecafParser.MethodCallContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#argumentList}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterArgumentList(DecafParser.ArgumentListContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#argumentList}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitArgumentList(DecafParser.ArgumentListContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#subReceiver}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterSubReceiver(DecafParser.SubReceiverContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#subReceiver}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitSubReceiver(DecafParser.SubReceiverContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#receiver}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterReceiver(DecafParser.ReceiverContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#receiver}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitReceiver(DecafParser.ReceiverContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#receivingMethod}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterReceivingMethod(DecafParser.ReceivingMethodContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#receivingMethod}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#binaryExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterBinaryExpr(DecafParser.BinaryExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#binaryExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitBinaryExpr(DecafParser.BinaryExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#calcExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterCalcExpr(DecafParser.CalcExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#calcExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitCalcExpr(DecafParser.CalcExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#dotExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterDotExpr(DecafParser.DotExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#dotExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitDotExpr(DecafParser.DotExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#dotSubExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterDotSubExpr(DecafParser.DotSubExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#dotSubExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitDotSubExpr(DecafParser.DotSubExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#nonCalcExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterNonCalcExpr(DecafParser.NonCalcExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#nonCalcExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitNonCalcExpr(DecafParser.NonCalcExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#nonCalcOperator}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterNonCalcOperator(DecafParser.NonCalcOperatorContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#nonCalcOperator}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#stmtExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterStmtExpr(DecafParser.StmtExprContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#stmtExpr}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitStmtExpr(DecafParser.StmtExprContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#statement}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterStatement(DecafParser.StatementContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#statement}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitStatement(DecafParser.StatementContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#returnStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterReturnStmt(DecafParser.ReturnStmtContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#returnStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitReturnStmt(DecafParser.ReturnStmtContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#localVarDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterLocalVarDecl(DecafParser.LocalVarDeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#localVarDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitLocalVarDecl(DecafParser.LocalVarDeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#block}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterBlock(DecafParser.BlockContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#block}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitBlock(DecafParser.BlockContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#whileStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterWhileStmt(DecafParser.WhileStmtContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#whileStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitWhileStmt(DecafParser.WhileStmtContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#ifElseStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterIfElseStmt(DecafParser.IfElseStmtContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#ifElseStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitIfElseStmt(DecafParser.IfElseStmtContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#ifStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterIfStmt(DecafParser.IfStmtContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#ifStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitIfStmt(DecafParser.IfStmtContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#elseStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterElseStmt(DecafParser.ElseStmtContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#elseStmt}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitElseStmt(DecafParser.ElseStmtContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#assign}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterAssign(DecafParser.AssignContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#assign}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitAssign(DecafParser.AssignContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#newDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterNewDecl(DecafParser.NewDeclContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#newDecl}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitNewDecl(DecafParser.NewDeclContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#type}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterType(DecafParser.TypeContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#type}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitType(DecafParser.TypeContext ctx);
|
|
/**
|
|
* Enter a parse tree produced by {@link DecafParser#value}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void enterValue(DecafParser.ValueContext ctx);
|
|
/**
|
|
* Exit a parse tree produced by {@link DecafParser#value}.
|
|
* @param ctx the parse tree
|
|
*/
|
|
void exitValue(DecafParser.ValueContext ctx);
|
|
} |