Archives for EpsilonJ Translator
Developed Translator converts Role-based Java program written in EpsilonJ into Java.


EpsilonJ Translator version 2.0

[16/06/2009] Version 2.0 (128KB) epsilonj_2_0.rar
  Source Code ver. 2.0 (116KB) source_2_0.rar

» How to execute translator:

1. Unzip file epsilonj_2_0.rar to obtain the directory contains executable epsilonj_2_0.jar, ejc batch file, and sample ej program.
2. Make sure that the class path is set and java program can be compiled and run properly on the latest JRE.
3. Open command prompt console and change to that directory.
4. Execute the translation using ejc command with input ej program as argument: ejc Company.ej
5. Once the translation is completed without failures, the output java file will be created in current directory with the same name as input (e.g. Company.java).

» How to execute translated program:

1. Since the translated file contains only plain Java syntax, it can be compiled directly with javac command: javac Company.java.
2. If there is no any syntax error, a few related executable class files will be automatically generated in the same directory.
3. Then simply execute the main class with java command (e.g. java TestCompany) and see the output.

» Modifications in this version:

1. Context file and main-class file can be combined into a single '.ej' file.
2. The java command to execute the translator and to specify the input file were hidden together within a simple 'ejc' command.
3. Translated file is automatically named with the same name of input EpsilonJ file.


EpsilonJ Translator version 1.2

[05/06/2009] Version 1.2 (130KB) epsilonj_1_2.rar

» How to execute translator:

1. Unzip file epsilonj_1_2.rar to obtain the directory contains executable epsilonj_1_2.jar and two sample input files.
2. Make sure that the class path is set and java program can be compiled and run properly on the latest JRE.
3. Open command prompt console and change to that directory.
4. Type this command line to execute the translator: java -cp epsilonj_1_2.jar epsilonj.translator
5. Follow the program instructions by type the input file name containing context class written in EpsilonJ (e.g. input-context.txt).
6. If it is successfully translated, then type the input file name containing main class written in EpsilonJ (e.g. input-main.txt) to be executed from.
7. Once the translation is completed without failures, the output file will be created as single EpsilonJ.java in current directory.

» How to execute translated program:

1. Since the translated EpsilonJ.java contains only plain Java syntax, it can be compiled directly with javac EpsilonJ.java.
2. If there is no any syntax error, a few related executable class files will be automatically generated in the same directory.
3. Then simply execute the main class with command line java EpsilonJ and see the output.


Developed by: Tetsuo Tamai & Supasit Monpratarnchai, Graduate School of Arts and Sciences, The University of Tokyo, Japan
Contact:
Homepage: http://www.graco.c.u-tokyo.ac.jp/~supasit/
Last modified: Tue 19 September 2017 11:27:17 AM
Copyright © 2009 Tamai Lab. All rights reserved.