222 lines
7.0 KiB
Java
222 lines
7.0 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.ParseTreeVisitor;
|
|
|
|
/**
|
|
* This interface defines a complete generic visitor for a parse tree produced
|
|
* by {@link DecafParser}.
|
|
*
|
|
* @param <T> The return type of the visit operation. Use {@link Void} for
|
|
* operations with no return type.
|
|
*/
|
|
public interface DecafVisitor<T> extends ParseTreeVisitor<T> {
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#program}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitProgram(DecafParser.ProgramContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#classdecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitClassdecl(DecafParser.ClassdeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#constuctorDecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitConstuctorDecl(DecafParser.ConstuctorDeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#methodDecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitMethodDecl(DecafParser.MethodDeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#fieldDecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitFieldDecl(DecafParser.FieldDeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#parameterList}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitParameterList(DecafParser.ParameterListContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#parameter}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitParameter(DecafParser.ParameterContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#expression}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitExpression(DecafParser.ExpressionContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#subExpression}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitSubExpression(DecafParser.SubExpressionContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#assignableExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitAssignableExpr(DecafParser.AssignableExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#instVar}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitInstVar(DecafParser.InstVarContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#methodCall}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitMethodCall(DecafParser.MethodCallContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#argumentList}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitArgumentList(DecafParser.ArgumentListContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#subReceiver}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitSubReceiver(DecafParser.SubReceiverContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#receiver}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitReceiver(DecafParser.ReceiverContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#receivingMethod}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitReceivingMethod(DecafParser.ReceivingMethodContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#binaryExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitBinaryExpr(DecafParser.BinaryExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#calcExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitCalcExpr(DecafParser.CalcExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#dotExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitDotExpr(DecafParser.DotExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#dotSubExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitDotSubExpr(DecafParser.DotSubExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#nonCalcExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitNonCalcExpr(DecafParser.NonCalcExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#nonCalcOperator}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitNonCalcOperator(DecafParser.NonCalcOperatorContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#stmtExpr}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitStmtExpr(DecafParser.StmtExprContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#statement}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitStatement(DecafParser.StatementContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#returnStmt}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitReturnStmt(DecafParser.ReturnStmtContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#localVarDecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitLocalVarDecl(DecafParser.LocalVarDeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#block}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitBlock(DecafParser.BlockContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#whileStmt}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitWhileStmt(DecafParser.WhileStmtContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#ifElseStmt}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitIfElseStmt(DecafParser.IfElseStmtContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#ifStmt}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitIfStmt(DecafParser.IfStmtContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#elseStmt}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitElseStmt(DecafParser.ElseStmtContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#assign}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitAssign(DecafParser.AssignContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#newDecl}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitNewDecl(DecafParser.NewDeclContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#type}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitType(DecafParser.TypeContext ctx);
|
|
/**
|
|
* Visit a parse tree produced by {@link DecafParser#value}.
|
|
* @param ctx the parse tree
|
|
* @return the visitor result
|
|
*/
|
|
T visitValue(DecafParser.ValueContext ctx);
|
|
} |