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());
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user