Search in sources :

Example 1 with MATLABBusElementExpr

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

the class LustreToMATLABExprVisitor method visit.

@Override
public MATLABExpr visit(RecordAccessExpr e) {
    MATLABExpr busExpr = e.record.accept(this);
    MATLABIdExpr elementExpr = new MATLABIdExpr(updateName(e.field, busExpr.toString()));
    return new MATLABBusElementExpr(busExpr, elementExpr);
}
Also used : MATLABExpr(com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABExpr) MATLABIdExpr(com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABIdExpr) MATLABBusElementExpr(com.rockwellcollins.atc.agree.codegen.ast.expr.MATLABBusElementExpr)

Aggregations

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