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.

Appendix C<br />

Formal <strong>Specifications</strong> <strong>of</strong><br />

<strong>Transformation</strong>s<br />

This appendix contains the specifications <strong>of</strong> the project written in RSL.<br />

C.1 Formal Specification <strong>of</strong> the Transformer<br />

Specification C.1 – Transformer.rsl<br />

scheme Transformer =<br />

extend RSLAst_Module with<br />

class<br />

type<br />

/∗****Global maps.****∗/<br />

/∗Map from typename id to variable id. Given by<br />

the user.∗/<br />

TRANS = Id →m Id,<br />

/∗Map from type name id to all involved types<br />

ids in type expression.∗/<br />

TYPINGS = Id →m Id ∗ ,<br />

/∗Map from function name to corresponding type<br />

expression.∗/<br />

FUNC = Id →m FuncSpec,<br />

FuncSpec ::<br />

type_expr : TypeExpr<br />

141

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

Saved successfully!

Ooh no, something went wrong!