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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

D.2. FORMAL SPECIFICATION OF THE TRANSFORMER IN RSL1<br />

case te1 <strong>of</strong><br />

TypeLiteral(literal1) →<br />

case te2 <strong>of</strong><br />

TypeLiteral(literal2) → literal1 = literal2,<br />

→ false<br />

end,<br />

TypeName(tn1) →<br />

case te2 <strong>of</strong><br />

TypeName(tn2) →<br />

equalsText(getText(tn1), getText(tn2)),<br />

→ false<br />

end,<br />

TypeExprProduct(tel1) →<br />

case te2 <strong>of</strong><br />

TypeExprProduct(tel2) →<br />

and(<br />

lengthTE(tel1) = lengthTE(tel2),<br />

equalsTypesProduct(tel1, tel2)),<br />

→ false<br />

end,<br />

TypeExprSet(tes1) →<br />

case te2 <strong>of</strong><br />

TypeExprSet(tes2) →<br />

equalsTypesSet(tes1, tes2),<br />

→ false<br />

end,<br />

TypeExprList(tel1) →<br />

case te2 <strong>of</strong><br />

TypeExprList(tel2) →<br />

equalsTypesList(tel1, tel2),<br />

→ false<br />

end,<br />

TypeExprMap(tem1) →<br />

case te2 <strong>of</strong><br />

TypeExprMap(tem2) →<br />

equalsTypesMap(tem1, tem2),<br />

→ false<br />

end,<br />

FunctionTypeExpr(fte1, fa1, rd1) →<br />

case te2 <strong>of</strong><br />

FunctionTypeExpr(fte2, fa2, rd2) →<br />

and(<br />

and(equalsTypes(fte1, fte2), fa1 = fa2),<br />

equalsTypes(<br />

409

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

Saved successfully!

Ooh no, something went wrong!