Compare commits

...

2 Commits

Author SHA1 Message Date
afd2319d78 Merge remote-tracking branch 'origin/master' 2024-06-18 16:09:46 +02:00
821908f060 fix int in ASTGenerator 2024-06-18 16:09:31 +02:00

View File

@ -255,9 +255,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
Node right = visitDotExpr(ctx.dotExpr());
return new BinaryExpression(ctx.LineOperator().getText(), (IExpression) left, (IExpression) right);
} else {
visitDotExpr(ctx.dotExpr());
return visitDotExpr(ctx.dotExpr());
}
return null;
}
@Override
@ -267,9 +266,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
Node right = visitDotSubExpr(ctx.dotSubExpr());
return new BinaryExpression(ctx.DotOperator().getText(), (IExpression) left, (IExpression) right);
} else {
visitDotSubExpr(ctx.dotSubExpr());
return visitDotSubExpr(ctx.dotSubExpr());
}
return null;
}
//todo