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 />

COMMA a = a c c e s s<br />

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

) ∗<br />

{ orad = new ReadAccessDesc ( a l ) ; }<br />

write_access_desc returns [ OptionalWriteAccessDesc owad ] {<br />

owad = null ;<br />

Access a = null ;<br />

RSLListDefault a l =<br />

new RSLListDefault() ;<br />

}<br />

: a = a c c e s s { a l . g e t L i s t ( ) . add ( a ) ; }<br />

(<br />

COMMA a = a c c e s s<br />

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

) ∗<br />

{owad = new WriteAccessDesc ( a l ) ; }<br />

;<br />

a c c e s s returns [ Access a ] {<br />

a = null ;<br />

Id a i = null ;<br />

}<br />

: a i = q u a l i f i e d _ i d<br />

{a = new AccessValueOrVariableName (<br />

new ValueOrVariableName ( a i ) ) ; }<br />

;<br />

type_expr_primary returns [ TypeExpr te ] {<br />

te = null ;<br />

TypeExpr te2 = null ;<br />

Id i d e n t i f i e r = null ;<br />

}<br />

: te = t y p e _ l i t e r a l<br />

|<br />

LPAREN te2 = type_expr RPAREN<br />

{ te = new BracketedTypeExpr ( te2 ) ; }<br />

|<br />

i d e n t i f i e r = id<br />

{ te = new TypeName( i d e n t i f i e r ) ; }<br />

;<br />

t y p e _ l i t e r a l returns [ TypeLiteral t l ] {<br />

t l = null ;<br />

}<br />

: INT { t l = new TypeLiteral (new INT ( ) ) ; }<br />

| REAL<br />

{ t l = new TypeLiteral (new REAL( ) ) ; }<br />

489

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

Saved successfully!

Ooh no, something went wrong!