gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system 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 }
189 //Expression stack
193 }
197 }
201 }
205 }
209 }
211 //Method stack
215 }
219 }
223 }
233 }
235 }
239 //skip start TODO make better
254 }
261 }
265 }
272 }
274 //TODO getstatic, putstatic
275 //TODO getfield, putfield
280 }
290 }
297 }
303 }
309 }
316 }
323 }
325 //TODO neg, shl, shr, inc
326 //TODO new_ newarray
327 //TODO aload, asstore, baload, bastore
328 //TODO arraylength
329 //TODO pop, dup, dup2
334 }
347 }
353 }
359 }
366 }
371 }
373 //TODO read, print
375 // the prints
380 }
382 // TODO need to make it a char
386 }
391 }
393 //TODO trap
399 }
403 }
410 }
411 }
422 }
429 }
446 else
456 }
457 i++;
458 }
463 }
472 }
473 }
475 // if not set to screen, or a file, make a default filename
481 }
482 }
493 }
494 }
498 }
499 }