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

F.2. VISITOR MODULES<br />

public void v i s i t N o I n i t i a l i s a t i o n ( N o I n i t i a l i s a t i o n<br />

n o I n i t i a l i s a t i o n ) {}<br />

public void v i s i t I n i t i a l i s a t i o n ( I n i t i a l i s a t i o n i n i t i a l i s a t i o n ) {<br />

i n i t i a l i s a t i o n . value_expr ( ) . accept ( this ) ;<br />

}<br />

/∗ Test D e c l a r a t i o n s ∗/<br />

public void v i s i t T e s t D e c l ( TestDecl t e s t D e c l ) {<br />

for ( TestDef t e s t D e f : t e s t D e c l . t e s t _ d e f _ l i s t ( ) . g e t L i s t ( ) ) {<br />

t e s t D e f . accept ( this ) ;<br />

}<br />

}<br />

public void v i s i t T e s t C a s e ( TestCase testCase ) {<br />

testCase . id ( ) . accept ( this ) ;<br />

testCase . value_expr ( ) . accept ( this ) ;<br />

}<br />

/∗Type Expression ∗/<br />

public void v i s i t T y p e L i t e r a l ( TypeLiteral t y p e L i t e r a l ) {<br />

t y p e L i t e r a l . t y p e _ l i t e r a l ( ) . accept ( this ) ;<br />

}<br />

public void visitTypeName (TypeName typeName ) {<br />

typeName . id ( ) . accept ( this ) ;<br />

}<br />

public void visitTypeExprProduct ( TypeExprProduct typeExprProduct ) {<br />

for ( TypeExpr te : typeExprProduct . component_list ( ) . g e t L i s t ( ) )<br />

{<br />

te . accept ( this ) ;<br />

}<br />

}<br />

public void visitTypeExprSet ( TypeExprSet typeExprSet ) {<br />

typeExprSet . type_expr_set ( ) . accept ( this ) ;<br />

}<br />

public void visitTypeExprList ( TypeExprList typeExprList ) {<br />

typeExprList . type_expr_list ( ) . accept ( this ) ;<br />

}<br />

public void visitTypeExprMap (TypeExprMap<br />

typeExprMap ) {<br />

typeExprMap . type_expr_map ( ) . accept ( this ) ;<br />

}<br />

519

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

Saved successfully!

Ooh no, something went wrong!