gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under
the git version control system
233d5ae76bf5b5ecf9f0a441be244593e1ffc510
1 package com
.quemaster
.transformations
.mjc2wsl
;
3 Copyright (C) 2014,2015, 2016 Doni Pracner
5 This file is part of mjc2wsl.
7 mjc2wsl is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
12 mjc2wsl is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with mjc2wsl. If not, see <http://www.gnu.org/licenses/>.
21 import java
.io
.FileInputStream
;
22 import java
.io
.IOException
;
23 import java
.io
.InputStream
;
24 import java
.io
.PrintWriter
;
25 import java
.nio
.file
.FileSystems
;
26 import java
.nio
.file
.Files
;
27 import java
.nio
.file
.Path
;
28 import java
.util
.Calendar
;
29 import java
.util
.Properties
;
31 import com
.quemaster
.transformations
.TransMessages
;
34 * This program converts file from compiled MicroJava bytecode to WSL language
35 * which is a part of the FermaT Transformation system. MicroJava is a subset
36 * used in Compiler Construction courses by Hanspeter Moessenboeck, not
39 * @author Doni Pracner, http://perun.dmi.rs/pracner http://quemaster.com
42 //default version name, used if the file is not found
43 private static String versionN
= "v0.2.x";
45 private String versionFile
= "version.properties";
47 private TransMessages messages
= new TransMessages();
49 private boolean genPauseAfterEachAddress
=false,
50 genPrintForEachAddress
= false,
51 genPrintEStackOnChange
= false;
53 private boolean genPopPush
=false;
55 private boolean genInlinePrint
= false;
57 private boolean genLocalVars
= true;
59 // make an array for all local variables OTHERWISE make them separate
60 private boolean genLocalsAsArray
= true;
62 /** Constant used for marking a regular comment from the original file */
63 public static final char C_REG
= ' ';
65 * Constant used for marking when original code is inserted in the file,
66 * next to the translations
68 public static final char C_OC
= '#';
69 /** Constant used for marking special messages from the translator */
70 public static final char C_SPEC
= '&';
71 /** Constant used for marking error messages from the translator */
72 public static final char C_ERR
= '!';
74 /** instruction code in MicroJava bytecode. */
75 public static final int
134 private boolean originalInComments
= false;
136 private Properties versionData
;
138 private String
getVersion() {
139 if (versionData
== null) {
140 versionData
= new Properties();
142 versionData
.load(getClass().getResourceAsStream(versionFile
));
143 } catch (IOException
| NullPointerException e
) {
145 //e.printStackTrace();
148 String ver
= versionData
.getProperty("version");
155 MicroJavaInput mjInput
= new MicroJavaInput();
157 private PrintWriter out
= null;
160 private void pr(int i
){
164 private void pr(char i
){
168 private void pr(String i
){
172 private void prl(String i
){
176 public String
createStandardStart(){
177 return createStandardStart(10);
180 public String
createStandardStart(int numWords
){
181 StringBuilder ret
= new StringBuilder(
182 "C:\" This file automatically converted from microjava bytecode\";\n"
183 +"C:\" with mjc2wsl "+getVersion()+"\";\n");
185 ret
.append("\nBEGIN");
186 ret
.append("\nVAR <\n\t");
188 ret
.append("\n\ttempa := 0, tempb :=0, tempres := 0,");
190 ret
.append("\n\tmjvm_flag_jump := 0,");
192 if (genLocalsAsArray
)
193 ret
.append("mjvm_locals := ARRAY(1,0),");
195 ret
.append("\n\tmjvm_statics := ARRAY("+numWords
+",0),");
196 ret
.append("\n\tmjvm_arrays := < >,");
197 ret
.append("\n\tmjvm_objects := < >,");
198 ret
.append("\n\tmjvm_estack := < >, mjvm_mstack := < > > :");
200 return ret
.toString();
203 public String
createAsciiString(){
204 StringBuilder ret
= new StringBuilder("C:\"char array for ascii code conversions\";");
205 ret
.append("\nascii := \"????????????????????????????????\"++\n");
206 ret
.append("\" !\"++Quote++\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~\";\n");
208 return ret
.toString();
211 public String
createStandardEnd(){
212 StringBuilder ret
= new StringBuilder("SKIP\nENDVAR\n");
213 ret
.append("\nWHERE\n");
215 ret
.append("\nFUNCT CHR(num) ==:\n");
216 ret
.append("\t(@List_To_String(< num >))\n");
219 if (!genInlinePrint
) {
220 ret
.append("\nPROC Print_MJ(val, format VAR)==\n");
221 ret
.append("PRINFLUSH(@Format(format, val ))");
222 ret
.append("\nEND\n");
224 ret
.append("\nPROC Print_MJ_CHAR(val, format VAR)==\n");
225 ret
.append("PRINFLUSH(@Format(format, CHR(val)))");
226 ret
.append("\nEND\n");
230 return ret
.toString();
233 private String
createStartVar(String
... vars
){
235 StringBuilder ret
= new StringBuilder("VAR < ");
236 ret
.append(vars
[0] + " := 0");
237 for (int i
= 1; i
< vars
.length
; i
++)
238 ret
.append(", " + vars
[i
] + " := 0");
241 return ret
.toString();
246 private String
createEndVar(){
253 private String
createLocal(int i
) {
254 // arrays start at 1 in WSL, so we need an offset
255 if (genLocalsAsArray
)
256 return "mjvm_locals[" + (i
+ 1) + "]";
258 return "mjvm_locals_" + i
;
261 private String
createStatic(int i
) {
262 return "mjvm_statics[" + (i
+ 1) + "]";
265 private String
createArray(int i
) {
266 return "mjvm_arrays[" + i
+ "]";
269 private String
createArray(String i
) {
270 return "mjvm_arrays[" + i
+ "]";
273 private String
createObject(String i
) {
274 return "mjvm_objects[" + i
+ "]";
278 * Creates a WSL comment with care to quote chars.
280 public static String
createComment(String str
){
281 return createComment(str
, C_REG
);
285 * Creates a WSL comment with care to quote chars, of the
286 * given type. Types are given as char constants. They can be
287 * default comments, comments that contain the original code
288 * in them, or additional comments regarding the translation
291 public static String
createComment(String str
, char type
) {
292 return "C:\"" + type
+ str
.replace("\"", "''") + "\";";
295 // generalised stack operations
297 private String
createToStack(String stack
, String var
){
299 return "PUSH("+stack
+"," + var
+ ");";
301 return stack
+ " := <" + var
+ " > ++ " + stack
+";";
304 private String
createFromStack(String stack
, String var
){
306 return "POP("+ var
+ ", "+stack
+");";
308 return var
+ ":= HEAD("+stack
+"); "+stack
+" := TAIL("+stack
+");";
312 private String
createToEStack(int i
) {
313 return createToEStack(i
+"");
316 private String
createToEStack(String i
) {
317 String res
= createToStack("mjvm_estack", i
);
318 if (genPrintEStackOnChange
)
319 res
+= "PRINT(\"eStack\",mjvm_estack);";
323 private String
createFromEStack(String st
) {
324 String res
= createFromStack("mjvm_estack",st
);
325 if (genPrintEStackOnChange
)
326 res
+= "PRINT(\"eStack\",mjvm_estack);";
330 private String
createPopEStack() {
331 String res
= "mjvm_estack := TAIL(mjvm_estack);";
332 if (genPrintEStackOnChange
)
333 res
+= "PRINT(\"eStack\",mjvm_estack);";
337 private String
createTopTwoEStack() {
338 return createFromEStack("tempa") + "\n" + createFromEStack("tempb");
341 private String
createTopEStack() {
342 return createFromEStack("tempa");
347 private String
createToMStack(int i
) {
348 return createToMStack(i
+"");
351 private String
createToMStack(String i
) {
352 return createToStack("mjvm_mstack", i
);
355 private String
createFromMStack(String st
) {
356 return createFromStack("mjvm_mstack", st
);
359 public void convertStream(InputStream ins
) throws Exception
{
360 mjInput
.setStream(ins
);
362 mjInput
.processHeader(this);
364 prl(createStandardStart(mjInput
.getNumberOfWords(this)));
365 prl("SKIP;\n ACTIONS a" + (14 + mjInput
.getMainAdr(this)) + " :");
367 // the number of Locals for procedures; need to remember it for exits
368 int numberOfLocals
= 0;
370 int op
= mjInput
.get();
372 prl(" a" + mjInput
.getCounter() + " ==");
373 if (originalInComments
)
374 prl(createComment(mjInput
.describeOpCode(op
), C_OC
));
375 if (genPrintForEachAddress
) {
376 prl("PRINT(\"a" + mjInput
.getCounter() + "\");");
377 if (genPauseAfterEachAddress
)
378 prl("@Read_Line_Proc(VAR debug_disposable_string, Standard_Input_Port);");
382 prl(createToEStack(createLocal(mjInput
.get())));
389 prl(createStartVar("tempa"));
390 prl("tempa :="+createLocal(op
- load_0
)+";");
391 prl(createToEStack("tempa"));
396 prl(createFromEStack(createLocal(mjInput
.get())));
403 prl(createStartVar("tempa"));
404 prl(createFromEStack("tempa"));
405 prl(createLocal(op
- store_0
)+" := tempa;");
411 prl(createToEStack(createStatic(mjInput
.get2())));
415 prl(createFromEStack(createStatic(mjInput
.get2())));
420 int f
= mjInput
.get2();
421 prl(createStartVar("tempa"));
422 prl(createTopEStack());
423 prl(createToEStack(createObject("tempa") + "[" + (f
+ 1) + "]"));
428 int f
= mjInput
.get2();
429 prl(createStartVar("tempa", "tempb"));
430 prl(createTopTwoEStack());
431 prl(createObject("tempb") + "[" + (f
+ 1) + "]:=tempa;");
437 prl(createToEStack(mjInput
.get4()));
442 prl(createToEStack(-1));
452 prl(createToEStack(op
- const_0
));
457 prl(createStartVar("tempa", "tempb", "tempres"));
458 prl(createTopTwoEStack());
459 prl("tempres := tempb + tempa;");
460 prl(createToEStack("tempres"));
465 prl(createStartVar("tempa", "tempb", "tempres"));
466 prl(createTopTwoEStack());
467 prl("tempres := tempb - tempa;");
468 prl(createToEStack("tempres"));
473 prl(createStartVar("tempa", "tempb", "tempres"));
474 prl(createTopTwoEStack());
475 prl("tempres := tempb * tempa;");
476 prl(createToEStack("tempres"));
481 prl(createStartVar("tempa", "tempb", "tempres"));
482 prl(createTopTwoEStack());
483 prl("IF tempa = 0 THEN ERROR(\"division by zero\") FI;");
484 prl("tempres := tempb DIV tempa;");
485 prl(createToEStack("tempres"));
490 prl(createStartVar("tempa", "tempb", "tempres"));
491 prl(createTopTwoEStack());
492 prl("IF tempa = 0 THEN ERROR(\"division by zero\") FI;");
493 prl("tempres := tempb MOD tempa;");
494 prl(createToEStack("tempres"));
500 prl(createStartVar("tempa"));
501 prl(createTopEStack());
502 prl(createToEStack("-tempa"));
508 prl(createStartVar("tempa", "tempb"));
509 prl(createTopTwoEStack());
510 prl("VAR <tempres :=tempb, i:=1 >:");
511 prl("\tFOR i:=1 TO tempa STEP 1 DO tempres := tempres * 2 OD;");
512 prl(createToEStack("tempres"));
518 prl(createStartVar("tempa", "tempb"));
519 prl(createTopTwoEStack());
520 prl("VAR <tempres :=tempb, i:=1 >:");
521 prl("\tFOR i:=1 TO tempa STEP 1 DO tempres := tempres DIV 2 OD;");
522 prl(createToEStack("tempres"));
529 int b1
= mjInput
.get(), b2
= mjInput
.get();
530 prl(createLocal(b1
) + " := " + createLocal(b1
) + " + " + b2
+ ";");
535 int size
= mjInput
.get2();
536 // TODO maybe objects and arrays should be in the same list?
537 prl("mjvm_objects := mjvm_objects ++ < ARRAY(" + size
539 prl(createToEStack("LENGTH(mjvm_objects)"));
543 mjInput
.get();// 0 - bytes, 1 - words; ignore for now
544 // TODO take into consideration 0/1
545 prl(createStartVar("tempa"));
546 prl(createTopEStack());
547 prl("mjvm_arrays := mjvm_arrays ++ < ARRAY(tempa,0) >;");
548 prl(createToEStack("LENGTH(mjvm_arrays)"));
555 prl(createStartVar("tempa", "tempb"));
556 prl(createTopTwoEStack());
557 prl(createToEStack(createArray("tempb") + "[tempa+1]"));
563 prl(createStartVar("tempa", "tempb", "tempres"));
564 prl(createFromEStack("tempres"));
565 prl(createTopTwoEStack());
566 prl("mjvm_arrays[tempb][tempa+1]:=tempres;");
571 prl(createStartVar("tempa", "tempb"));
572 prl(createTopEStack());
573 prl("tempb := LENGTH("+ createArray("tempa") + ");");
574 prl(createToEStack("tempb"));
580 prl(createStartVar("tempa", "tempb"));
581 prl(createTopEStack());
582 prl(createToEStack("tempa"));
583 prl(createToEStack("tempa"));
588 prl(createStartVar("tempa", "tempb"));
589 prl(createTopTwoEStack());
590 prl(createToEStack("tempb"));
591 prl(createToEStack("tempa"));
592 prl(createToEStack("tempb"));
593 prl(createToEStack("tempa"));
599 prl(createPopEStack());
604 prl("CALL a" + (mjInput
.getCounter() + mjInput
.get2()) + ";");
615 prl(createStartVar("tempa", "tempb"));
616 prl(createTopTwoEStack());
617 prl("IF tempb " + mjInput
.getRelationFor(op
)
618 + " tempa THEN mjvm_flag_jump := 1"
619 + " ELSE mjvm_flag_jump := 0"
622 prl("IF mjvm_flag_jump = 1 THEN CALL a"
623 + (mjInput
.getCounter() + mjInput
.get2())
624 + " ELSE CALL a" + (mjInput
.getCounter() + 1)
627 prl(createTopTwoEStack());
628 prl("IF tempb " + mjInput
.getRelationFor(op
)
629 + " tempa THEN CALL a"
630 + (mjInput
.getCounter() + mjInput
.get2())
631 + " ELSE CALL a" + (mjInput
.getCounter() + 1)
638 prl("CALL a" + (mjInput
.getCounter() + mjInput
.get2()) + ";");
643 // we let the actions return
644 // there is nothing to clean up
645 prl("SKIP\n END\n b" + mjInput
.getCounter() + " ==");
649 int parameters
= mjInput
.get();
651 numberOfLocals
= mjInput
.get();
652 if (genLocalsAsArray
) {
653 prl(createToMStack("mjvm_locals"));
654 prl("mjvm_locals := ARRAY(" + numberOfLocals
+ ",0);");
656 // TODO maybe we should generate VAR block for these somewhere
657 for (int i
= 0; i
< numberOfLocals
; i
++) {
658 prl(createToMStack(createLocal(i
)));
662 for (int i
= parameters
- 1; i
>= 0; i
--)
663 prl(createFromEStack(createLocal(i
)));
667 if (genLocalsAsArray
) {
668 prl(createFromMStack("mjvm_locals"));
670 // there are as many locals as defined in the last enter
671 for (int i
= numberOfLocals
-1; i
>= 0; i
--)
672 prl(createFromMStack(createLocal(i
)));
679 // TODO maybe we'll need a bufer for multi chars!
680 prl(createStartVar("tempa"));
681 prl("@Read_Line_Proc(VAR tempa, Standard_Input_Port);");
682 prl("tempa := @String_To_List(tempa)[1];");
683 prl(createToEStack("tempa"));
688 prl(createStartVar("tempa"));
689 prl("@Read_Line_Proc(VAR tempa, Standard_Input_Port);");
690 prl("tempa := @String_To_Num(tempa);");
691 prl(createToEStack("tempa"));
698 prl(createStartVar("tempa", "tempb"));
699 prl(createTopTwoEStack());
701 prl(createComment("print spacing and transformation",C_SPEC
));
702 prl("PRINFLUSH(@Format(tempa, @List_To_String(< tempb >)));");
704 prl("Print_MJ_CHAR(tempb,tempa);");
709 prl(createStartVar("tempa", "tempb"));
711 prl(createTopTwoEStack());
713 prl(createComment("print spacing",C_SPEC
));
714 prl("PRINFLUSH(@Format(tempa,tempb));");
717 prl("Print_MJ(tempb,tempa);");
723 prl("ERROR(\"Runtime error: trap(" + mjInput
.get() + ")\");");
728 prl(createComment("unknown op error: " + op
, C_ERR
));
729 messages
.message("unknown op error: " + op
, TransMessages
.M_ERR
);
733 boolean wasJump
= mjInput
.isJumpCode(op
);
739 prl("CALL a" + mjInput
.getCounter() + "\n END");
741 prl("SKIP\n END\nENDACTIONS;\n");
742 pr(createStandardEnd());
745 public void convertFile(File f
) {
747 convertStream(new FileInputStream(f
));
748 } catch (Exception ex
) {
749 ex
.printStackTrace();
753 public void printHelp() {
760 public void printLongHelp() {
763 System
.out
.println();
765 System
.out
.println();
766 printHelpDirectives();
767 System
.out
.println();
768 printHelpGenerating();
769 System
.out
.println();
773 public void printHelpOutput() {
774 System
.out
.println("Output options:");
775 System
.out
.println(" --screen print output to screen");
776 System
.out
.println(" -o --oc[+-] include original code in comments");
777 System
.out
.println(" -v verbose, print warning messages");
778 System
.out
.println(" -q quiet; don't print even the error messages");
779 System
.out
.println(" -d print detailed debug messages");
782 public void printHelpGenerating() {
783 System
.out
.println("Options for generating extra code for tracking code execution");
784 System
.out
.println(" --genEStackPrint generate print for all EStack changes");
785 System
.out
.println(" --genAddrPrint generate prints after every address of the original code ");
786 System
.out
.println(" --genAddrPause generate a pause after every address of the original code ");
787 System
.out
.println(" --genAddr short for --genAddrPrint and --genAddrPause");
788 System
.out
.println(" --genAll short for applying all code generation");
791 public void printHelpDirectives(){
792 System
.out
.println("Alternatives for code generation (* are the defaults):");
793 System
.out
.print(genPopPush?
'*':' ');
794 System
.out
.println(" --genPopPush generate POP/PUSH instead of TAIL/HEAD");
795 System
.out
.print(!genPopPush?
'*':' ');
796 System
.out
.println(" --genHeadTail generate TAIL/HEAD instead of POP/PUSH ");
797 System
.out
.println();
798 System
.out
.print(genInlinePrint?
'*':' ');
799 System
.out
.println(" --genInlinePrint generate prints directly instead of procedure calls");
800 System
.out
.print(!genInlinePrint?
'*':' ');
801 System
.out
.println(" --genProcedurePrint generate prints as custom procedure calls");
802 System
.out
.println();
803 System
.out
.print(genLocalVars?
'*':' ');
804 System
.out
.println(" --genLocalVars generate local VAR block for temp variables");
805 System
.out
.print(!genLocalVars?
'*':' ');
806 System
.out
.println(" --genGlobalVars do NOT generate local VAR block for temp variables");
807 System
.out
.println();
808 System
.out
.print(genLocalsAsArray?
'*':' ');
809 System
.out
.println(" --genLocalsAsArray generate local variables as an array");
810 System
.out
.print(!genLocalsAsArray?
'*':' ');
811 System
.out
.println(" --genLocalsSeparate generate local variables as separate entities");
814 public void printHelpHelp() {
815 System
.out
.println("Help and info options");
816 System
.out
.println(" -h basic help");
817 System
.out
.println(" --help print more detailed help");
818 System
.out
.println(" --version or -version print version and exit");
821 public void printUsage(){
822 System
.out
.println("usage:\n\t mjc2wsl {options} filename [outfile]");
825 public void printVersion() {
826 System
.out
.println("MicroJava bytecode to WSL converter " + getVersion()
827 + ", by Doni Pracner");
830 public String
makeDefaultOutName(String inname
){
832 if (inname
.endsWith(".obj"))
833 rez
= rez
.substring(0, rez
.length() - 4);
837 public void run(String
[] args
) {
838 if (args
.length
== 0) {
842 while (i
< args
.length
&& args
[i
].length() > 0 && args
[i
].charAt(0) == '-') {
843 if (args
[i
].compareTo("-h") == 0) {
846 } else if (args
[i
].compareTo("--help") == 0) {
849 } else if (args
[i
].compareTo("--version") == 0
850 || args
[i
].compareTo("-version") == 0) {
853 } else if (args
[i
].compareTo("-o") == 0
854 || args
[i
].startsWith("--oc")) {
855 if (args
[i
].length() == 2)
856 originalInComments
= true;
857 else if (args
[i
].length() == 5)
858 originalInComments
= args
[i
].charAt(4) == '+';
860 originalInComments
= true;
861 } else if (args
[i
].compareTo("--screen") == 0) {
862 out
= new PrintWriter(System
.out
);
863 } else if (args
[i
].compareTo("-d") == 0) {
864 messages
.setPrintLevel(TransMessages
.M_DEB
);// print debug info
865 } else if (args
[i
].compareTo("-v") == 0) {
866 messages
.setPrintLevel(TransMessages
.M_WAR
);// print warnings
867 } else if (args
[i
].compareTo("-q") == 0) {
868 messages
.setPrintLevel(TransMessages
.M_QUIET
);// no printing
869 } else if (args
[i
].compareToIgnoreCase("--genEStackPrint") == 0) {
870 genPrintEStackOnChange
= true;
871 } else if (args
[i
].compareToIgnoreCase("--genAddrPause") == 0) {
872 genPauseAfterEachAddress
= true;
873 } else if (args
[i
].compareToIgnoreCase("--genAddrPrint") == 0) {
874 genPrintForEachAddress
= true;
875 } else if (args
[i
].compareToIgnoreCase("--genAddr") == 0) {
876 genPrintForEachAddress
= true;
877 genPauseAfterEachAddress
= true;
878 } else if (args
[i
].compareToIgnoreCase("--genAll") == 0) {
879 genPrintEStackOnChange
= true;
880 genPrintForEachAddress
= true;
881 genPauseAfterEachAddress
= true;
882 } else if (args
[i
].compareToIgnoreCase("--genPopPush") == 0) {
884 } else if (args
[i
].compareToIgnoreCase("--genInlinePrint") == 0) {
885 genInlinePrint
= true;
886 } else if (args
[i
].compareToIgnoreCase("--genHeadTail") == 0) {
888 } else if (args
[i
].compareToIgnoreCase("--genProcedurePrint") == 0) {
889 genInlinePrint
= false;
890 } else if (args
[i
].compareToIgnoreCase("--genLocalVars") == 0) {
892 } else if (args
[i
].compareToIgnoreCase("--genGlobalVars") == 0) {
893 genLocalVars
= false;
894 } else if (args
[i
].compareToIgnoreCase("--genLocalsAsArray") == 0) {
895 genLocalsAsArray
= true;
896 } else if (args
[i
].compareToIgnoreCase("--genLocalsSeparate") == 0) {
897 genLocalsAsArray
= false;
899 System
.err
.println("unknown option: "+args
[i
]);
904 if (i
>= args
.length
) {
905 System
.err
.println("no filename supplied");
909 Path p
= FileSystems
.getDefault().getPath(args
[i
]);
910 if (!Files
.isRegularFile(p
)){
911 System
.err
.println("input file does not exist");
915 if (i
+ 1 < args
.length
) {
917 out
= new PrintWriter(args
[i
+ 1]);
918 } catch (Exception e
) {
919 System
.err
.println("error in opening out file:");
924 // if not set to screen, or a file, make a default filename
926 out
= new PrintWriter(makeDefaultOutName(args
[i
]));
927 } catch (Exception e
) {
928 System
.err
.println("error in opening out file:");
932 Calendar now
= Calendar
.getInstance();
934 convertStream(Files
.newInputStream(p
));
935 } catch (Exception e
) {
936 // TODO Auto-generated catch block
939 long mili
= Calendar
.getInstance().getTimeInMillis()
940 - now
.getTimeInMillis();
941 System
.out
.println("conversion time:" + mili
+ " ms");
942 messages
.printMessageCounters();
947 public static void main(String
[] args
) {
948 new mjc2wsl().run(args
);
Svarog.pmf.uns.ac.rs/gitweb
maintanance
Doni Pracner