This commit is contained in:
StefanZ3 2024-06-20 07:28:31 +02:00
parent 112c5f2c1b
commit b00979c1a8

View File

@ -282,7 +282,6 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
} }
} }
//todo
@Override @Override
public Node visitDotSubExpr(DecafParser.DotSubExprContext ctx) { public Node visitDotSubExpr(DecafParser.DotSubExprContext ctx) {
if (ctx.IntValue() != null) { if (ctx.IntValue() != null) {
@ -293,6 +292,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
return new LocalVarIdentifier(identifier); return new LocalVarIdentifier(identifier);
} else if(ctx.instVar() != null) { } else if(ctx.instVar() != null) {
return visitInstVar(ctx.instVar()); return visitInstVar(ctx.instVar());
} else if(ctx.methodCall() != null) {
return visitMethodCall(ctx.methodCall());
} else if(ctx.calcExpr() != null) { } else if(ctx.calcExpr() != null) {
return visitCalcExpr(ctx.calcExpr()); return visitCalcExpr(ctx.calcExpr());
} }