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
120 }
124 }
134 }
138 }
142 }
146 }
156 }
157 counter++;
159 }
163 }
167 }
171 }
173 /**
174 * Creates a WSL comment with care to quote chars.
175 */
178 }
180 /**
181 * Creates a WSL comment with care to quote chars, of the
182 * given type. Types are given as char constants. They can be
183 * default comments, comments that contain the original code
184 * in them, or additional comments regarding the translation
185 * process.
186 */
189 }
191 //Expression stack
195 }
199 }
203 }
207 }
211 }
213 //Method stack
217 }
221 }
225 }
235 }
237 }
241 //skip start TODO make better
256 }
263 }
267 }
274 }
276 //TODO getstatic, putstatic
277 //TODO getfield, putfield
282 }
292 }
299 }
305 }
311 }
318 }
325 }
327 //TODO neg, shl, shr, inc
328 //TODO new_ newarray
329 //TODO aload, asstore, baload, bastore
330 //TODO arraylength
331 //TODO pop, dup, dup2
336 }
349 }
355 }
359 //else we let things return
364 }
371 }
376 }
378 //TODO read, print
380 // the prints
385 }
387 // TODO need to make it a char
391 }
396 }
398 //TODO trap
404 }
408 }
415 }
416 }
427 }
434 }
451 else
461 }
462 i++;
463 }
468 }
477 }
478 }
480 // if not set to screen, or a file, make a default filename
486 }
487 }
498 }
499 }
503 }
504 }