fix int in ASTGenerator

This commit is contained in:
StefanZ3 2024-06-18 16:09:31 +02:00
parent 666931fa44
commit 821908f060

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