fix int in ASTGenerator
This commit is contained in:
parent
666931fa44
commit
821908f060
@ -255,9 +255,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
|||||||
Node right = visitDotExpr(ctx.dotExpr());
|
Node right = visitDotExpr(ctx.dotExpr());
|
||||||
return new BinaryExpression(ctx.LineOperator().getText(), (IExpression) left, (IExpression) right);
|
return new BinaryExpression(ctx.LineOperator().getText(), (IExpression) left, (IExpression) right);
|
||||||
} else {
|
} else {
|
||||||
visitDotExpr(ctx.dotExpr());
|
return visitDotExpr(ctx.dotExpr());
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -267,9 +266,8 @@ public class ASTGenerator extends DecafBaseVisitor<Node> {
|
|||||||
Node right = visitDotSubExpr(ctx.dotSubExpr());
|
Node right = visitDotSubExpr(ctx.dotSubExpr());
|
||||||
return new BinaryExpression(ctx.DotOperator().getText(), (IExpression) left, (IExpression) right);
|
return new BinaryExpression(ctx.DotOperator().getText(), (IExpression) left, (IExpression) right);
|
||||||
} else {
|
} else {
|
||||||
visitDotSubExpr(ctx.dotSubExpr());
|
return visitDotSubExpr(ctx.dotSubExpr());
|
||||||
}
|
}
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo
|
//todo
|
||||||
|
Loading…
Reference in New Issue
Block a user