gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control systemb7c572b609049776dfe8e73865b24ce3723d24a1
4 /**
5 * This program converts file from compiled MicroJava bytecode to WSL language
6 * which is a part of the FermaT Transformation system. MicroJava is a subset
7 * used in Compiler Construction courses by Hanspeter Moessenboeck, not
8 * "Java ME".
9 *
10 * @author Doni Pracner, http://perun.dmi.rs/pracner http://quemaster.com
11 */
25 }
29 }
33 }
35 /** Constant used for marking a regular comment from the original file */
37 /**
38 * Constant used for marking when original code is inserted in the file,
39 * next to the translations
40 */
42 /** Constant used for marking special messages from the translator */
44 /** Constant used for marking error messages from the translator */
47 /** instruction code in MicroJava bytecode. */
48 public static final int
118 }
122 }
132 }
136 }
140 }
144 }
154 }
155 counter++;
157 }
161 }
165 }
169 }
171 /**
172 * Creates a WSL comment with care to quote chars.
173 */
176 }
178 /**
179 * Creates a WSL comment with care to quote chars, of the
180 * given type. Types are given as char constants. They can be
181 * default comments, comments that contain the original code
182 * in them, or additional comments regarding the translation
183 * process.
184 */
187 }
191 }
195 }
199 }
203 }
207 }
217 }
219 }
223 //skip start TODO make better
238 }
245 }
249 }
256 }
258 //TODO getstatic, putstatic
259 //TODO getfield, putfield
264 }
274 }
281 }
287 }
293 }
300 }
307 }
309 //TODO neg, shl, shr, inc
310 //TODO new_ newarray
311 //TODO aload, asstore, baload, bastore
312 //TODO arraylength
313 //TODO pop, dup, dup2
318 }
331 }
333 //TODO call
339 }
346 }
351 }
353 //TODO read, print
355 // the prints
360 }
362 // TODO need to make it a char
366 }
371 }
373 //TODO trap
379 }
383 }
390 }
391 }
402 }
409 }
426 else
436 }
437 i++;
438 }
443 }
452 }
453 }
455 // if not set to screen, or a file, make a default filename
461 }
462 }
473 }
474 }
478 }
479 }