gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
ant - log time format update
[mjc2wsl.git] / lib / compiler.txt
1 MicroJava Compiler
2 ==================
4 About MicroJava
5 ---------------
7 MicroJava is a simple language made by H. Mössenböck for a Compiler Construction
8 course. It is not the same as Java Micro Edition (JavaME) used on mobile
9 phones.
11 More about the course, the language and its VM:
14 The site for the Serbian version of the course:
18 About the compiler and runner
19 -----------------------------
21 The source files for a functional MJ compiler are given in the compiler-src
22 folder. These are heavily based on the source templates that are used in
23 the Compiler Construction classes and finished by students during the
24 course.
26 The original source templates were written by Moessenboeck and are available
27 on the sites given above, though there are posible updates. The version
28 given has the compiler finished by a student, and a few additional changes
29 (such as the optional decoding while writeing to file).
32 Usage
33 -----
35 An ant build script can be found in the root folder of the project and it
36 includes (among others) tasks for building the sources, as well as using
37 the compiler and runner.
39 Otherwise calls can be made with:
41 java MJ.Compiler <input.mj> [-print]
42 java MJ.Run [-d] <input.obj>
44 There is also a Decoder available:
46 java MJ.Decode <input.obj>
48 You might want to include the "compiler-bin" into your CLASSPATH, or just
49 use "-cp compiler-bin" in the command line. maintanance Doni Pracner