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.

;<br />

(<br />

(<br />

|<br />

TOTALARROW<br />

{ f a = new TOTAL_FUNCTION_ARROW( ) ; }<br />

PARTIAL TOTALARROW<br />

{ f a = new PARTIAL_FUNCTION_ARROW( ) ; }<br />

)<br />

rd = r e s u l t _ d e s c<br />

{ te = new FunctionTypeExpr ( te2 , fa , rd ) ; }<br />

) ?<br />

{ i f ( te == null ) te = te2 ; }<br />

type_expr_pr2 returns [ TypeExpr te ] {<br />

te = null ;<br />

TypeExpr te2 = null ;<br />

TypeExpr te3 = null ;<br />

RSLListDefault typeExprList =<br />

new RSLListDefault() ;<br />

}<br />

: te2 = type_expr_pr1<br />

{ typeExprList . g e t L i s t ( ) . add ( te2 ) ; }<br />

(<br />

CROSS te3 = type_expr_pr1<br />

{ typeExprList . g e t L i s t ( ) . add ( te3 ) ; }<br />

) ∗<br />

{<br />

i f ( te3 ! = null ) {<br />

te = new TypeExprProduct ( typeExprList ) ;<br />

}<br />

else {<br />

te = te2 ;<br />

}<br />

}<br />

;<br />

type_expr_pr1 returns [ TypeExpr te ] {<br />

te = null ;<br />

TypeExpr te2 = null ;<br />

TypeExpr te3 = null ;<br />

SingleTyping s t = null ;<br />

ValueExpr ve = null ;<br />

}<br />

: te2 = type_expr_primary<br />

(<br />

MINUS<br />

(<br />

LIST<br />

487

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

Saved successfully!

Ooh no, something went wrong!