26.09.2013 Views

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C.1. FORMAL SPECIFICATION OF THE TRANSFORMER<br />

map expression.∗/<br />

/∗<br />

Arguments:<br />

=======<br />

idset: the functions already evaluated<br />

me: the map expression<br />

et: the expected type <strong>of</strong> the map expression<br />

Result:<br />

=======<br />

AccessResult: the corresponding access result<br />

∗/<br />

getAccessObsMapExpr :<br />

Id-set × MapExpr × MapType × FUNC × TRANS →<br />

AccessResult<br />

getAccessObsMapExpr(idset, me, et, func, trans) ≡<br />

case me <strong>of</strong><br />

EnumeratedMapExpr(ovel) →<br />

getAccessObsOptVEPL(idset, ovel, et, func, trans),<br />

ComprehendedMapExpr(ve, typlist, or) →<br />

getAccessObsListList(<br />

idset,<br />

〈first(ve), second(ve)〉 <br />

getVEOptRestriction(or),<br />

〈tedom(et), terange(et),<br />

Known(TypeLiteral(BOOL))〉, func, trans)<br />

end,<br />

/∗Returns an access list <strong>of</strong> the values <strong>of</strong> types<br />

<strong>of</strong> interest read from during evaluation <strong>of</strong> an<br />

optional value expression list.∗/<br />

/∗<br />

Arguments:<br />

=======<br />

idset: the functions already evaluated<br />

ovel: the optional value expression list<br />

et: the expected type <strong>of</strong> the optional value expressions<br />

list<br />

Result:<br />

=======<br />

AccessResult: the corresponding access result<br />

∗/<br />

getAccessObsOptVEL :<br />

Id-set × OptionalValueExprList × ExpType ×<br />

FUNC × TRANS →<br />

255

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!