Search in sources :

Example 1 with MATLABIfFunctionCall

use of com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABIfFunctionCall in project AGREE by loonwerks.

the class LustreToMATLABExprVisitor method visit.

@Override
public MATLABExpr visit(IfThenElseExpr e) {
    MATLABExpr cond = e.cond.accept(this);
    MATLABExpr ifExpr = e.thenExpr.accept(this);
    MATLABExpr elseExpr = e.elseExpr.accept(this);
    functionMap.get("ifFunction").functionCalled = true;
    return new MATLABIfFunctionCall(cond, ifExpr, elseExpr);
}
Also used : MATLABExpr(com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABExpr) MATLABIfFunctionCall(com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABIfFunctionCall)

Aggregations

MATLABExpr (com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABExpr)1 MATLABIfFunctionCall (com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABIfFunctionCall)1