Transformation of Applicative Specifications into Imperative ...

Transformation of Applicative Specifications into Imperative ... Transformation of Applicative Specifications into Imperative ...

26.09.2013 Views

APPENDIX E. ANTLR GRAMMAR 508

Appendix F Source Code This appendix contains the hand written source code of the transformer in Java. F.1 RSLRunner RSLRunner.java package t r a n s l a t o r ; import t r a n s l a t o r . l i b . ∗ ; import t r a n s l a t o r . r s l l i b . ∗ ; import t r a n s l a t o r . r s l a s t . ∗ ; import t r a n s l a t o r . s y n t a c t i c a n a l y z e r . ∗ ; import t r a n s l a t o r . r s l t r a n s f o r m e r . ∗ ; import java . u t i l . ∗ ; import java . i o . ∗ ; import java . t e x t . ∗ ; public class RSLRunner { public static RSLRunner i n s t a n c e ; private static RSLList v a r i a b l e s ; public void transform ( S t r i n g filename , S t r i n g newFilename , boolean w r i t e F i l e s ) { FileReader f r = null ; try { f r = new FileReader ( f i l e n a m e + " . r s l " ) ; } catch ( FileNotFoundException e ) { System . out . p r i n t l n ( " F i l e " 509

APPENDIX E. ANTLR GRAMMAR<br />

508

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

Saved successfully!

Ooh no, something went wrong!