use of com.rockwellcollins.atc.agree.agree.PrevExpr in project AGREE by loonwerks.
the class AgreeASTBuilder method casePrevExpr.
@Override
public Expr casePrevExpr(PrevExpr expr) {
Expr delayExpr = doSwitch(expr.getDelay());
Expr initExpr = doSwitch(expr.getInit());
Expr preExpr = new UnaryExpr(UnaryOp.PRE, delayExpr);
Expr res = new BinaryExpr(initExpr, BinaryOp.ARROW, preExpr);
return res;
}
Aggregations