forked from stan/AntlrAssignment3Template
210 lines
7.2 KiB
Java
210 lines
7.2 KiB
Java
// Generated from C:/Users/laure/Documents/Dev/Compilerbau/LearningANTLR/UeBung2/AntlrAssignment3/src/main/antlr4/de/dhbw/horb/Decaf.g4 by ANTLR 4.13.1
|
|
import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;
|
|
|
|
/**
|
|
* This class provides an empty implementation of {@link DecafVisitor},
|
|
* which can be extended to create a visitor which only needs to handle a subset
|
|
* of the available methods.
|
|
*
|
|
* @param <T> The return type of the visit operation. Use {@link Void} for
|
|
* operations with no return type.
|
|
*/
|
|
@SuppressWarnings("CheckReturnValue")
|
|
public class DecafBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements DecafVisitor<T> {
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitProgram(DecafParser.ProgramContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitVar(DecafParser.VarContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitType(DecafParser.TypeContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitFunc(DecafParser.FuncContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitParams(DecafParser.ParamsContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitParam(DecafParser.ParamContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitBlock(DecafParser.BlockContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitAssign(DecafParser.AssignContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitFunctionCall(DecafParser.FunctionCallContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitIf(DecafParser.IfContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitWhile(DecafParser.WhileContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitReturn(DecafParser.ReturnContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitReturnVoid(DecafParser.ReturnVoidContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitBreak(DecafParser.BreakContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitContinue(DecafParser.ContinueContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitExpression(DecafParser.ExpressionContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitFunCallExpression(DecafParser.FunCallExpressionContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitConstant(DecafParser.ConstantContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitBinaryOperation(DecafParser.BinaryOperationContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitLocation(DecafParser.LocationContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitBinaryOp(DecafParser.BinaryOpContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitLoc(DecafParser.LocContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitFuncCall(DecafParser.FuncCallContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitArgs(DecafParser.ArgsContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitLiteral(DecafParser.LiteralContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitBoolean(DecafParser.BooleanContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitNumber(DecafParser.NumberContext ctx) { return visitChildren(ctx); }
|
|
/**
|
|
* {@inheritDoc}
|
|
*
|
|
* <p>The default implementation returns the result of calling
|
|
* {@link #visitChildren} on {@code ctx}.</p>
|
|
*/
|
|
@Override public T visitId(DecafParser.IdContext ctx) { return visitChildren(ctx); }
|
|
} |