diff --git a/src/main/java/astGenerator/ASTGenerator.java b/src/main/java/astGenerator/ASTGenerator.java index fdcaf63..123d34b 100644 --- a/src/main/java/astGenerator/ASTGenerator.java +++ b/src/main/java/astGenerator/ASTGenerator.java @@ -282,7 +282,6 @@ public class ASTGenerator extends DecafBaseVisitor { } } - //todo @Override public Node visitDotSubExpr(DecafParser.DotSubExprContext ctx) { if (ctx.IntValue() != null) { @@ -293,6 +292,8 @@ public class ASTGenerator extends DecafBaseVisitor { return new LocalVarIdentifier(identifier); } else if(ctx.instVar() != null) { return visitInstVar(ctx.instVar()); + } else if(ctx.methodCall() != null) { + return visitMethodCall(ctx.methodCall()); } else if(ctx.calcExpr() != null) { return visitCalcExpr(ctx.calcExpr()); }