gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control systemee36c5188cf5d9f791352cd67249c4083c0dc43b
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
120 }
124 }
143 }
147 }
148 }
150 }
154 }
158 }
166 }
170 }
174 }
178 }
188 }
189 counter++;
191 }
195 }
199 }
203 }
205 /**
206 * Creates a WSL comment with care to quote chars.
207 */
210 }
212 /**
213 * Creates a WSL comment with care to quote chars, of the
214 * given type. Types are given as char constants. They can be
215 * default comments, comments that contain the original code
216 * in them, or additional comments regarding the translation
217 * process.
218 */
221 }
223 //Expression stack
227 }
231 }
235 }
239 }
243 }
245 //Method stack
249 }
253 }
257 }
267 }
269 }
273 //skip start TODO make better
288 }
295 }
299 }
306 }
308 //TODO getstatic, putstatic
309 //TODO getfield, putfield
314 }
324 }
331 }
337 }
343 }
350 }
357 }
359 //TODO neg, shl, shr, inc
360 //TODO new_ newarray
361 //TODO aload, asstore, baload, bastore
362 //TODO arraylength
363 //TODO pop, dup, dup2
368 }
381 }
387 }
391 //else we let things return
396 }
403 }
408 }
410 //TODO read, print
412 // the prints
417 }
419 // TODO need to make it a char
423 }
428 }
430 //TODO trap
436 }
440 }
447 }
448 }
459 }
466 }
483 else
493 }
494 i++;
495 }
500 }
509 }
510 }
512 // if not set to screen, or a file, make a default filename
518 }
519 }
530 }
531 }
535 }
536 }