X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=mjc2wsl.git;a=blobdiff_plain;f=lib%2Fcompiler.txt;fp=lib%2Fcompiler.txt;h=7171aac3350206411f2cc7b3d049b37f1cec98b6;hp=0000000000000000000000000000000000000000;hb=e59b5cca30d9da6f739b9e728d1ed269f897b47b;hpb=bdbc7698321df4c4f7611202a8a07add543bfa1f diff --git a/lib/compiler.txt b/lib/compiler.txt new file mode 100644 index 0000000..7171aac --- /dev/null +++ b/lib/compiler.txt @@ -0,0 +1,49 @@ +MicroJava Compiler +================== + +About MicroJava +--------------- + +MicroJava is a simple language made by H. Mössenböck for a Compiler Construction +course. It is not the same as Java Micro Edition (JavaME) used on mobile +phones. + +More about the course, the language and its VM: +http://www.ssw.uni-linz.ac.at/Misc/CC/ + +The site for the Serbian version of the course: +http://perun.pmf.uns.ac.rs/kurbalija/Teaching/kk.htm + + +About the compiler and runner +----------------------------- + +The source files for a functional MJ compiler are given in the compiler-src +folder. These are heavily based on the source templates that are used in +the Compiler Construction classes and finished by students during the +course. + +The original source templates were written by Moessenboeck and are available +on the sites given above, though there are posible updates. The version +given has the compiler finished by a student, and a few additional changes +(such as the optional decoding while writeing to file). + + +Usage +----- + +An ant build script can be found in the root folder of the project and it +includes (among others) tasks for building the sources, as well as using +the compiler and runner. + +Otherwise calls can be made with: + +java MJ.Compiler [-print] +java MJ.Run [-d] + +There is also a Decoder available: + +java MJ.Decode + +You might want to include the "compiler-bin" into your CLASSPATH, or just +use "-cp compiler-bin" in the command line.