gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
new sample for ArrayTesting
[mjc2wsl.git] / src / mjc2wsl.java
index 16b0e37..10e9c2c 100644 (file)
@@ -419,7 +419,7 @@ public class mjc2wsl{
                        
                        case inc  : {
                                int b1 = get(), b2 = get();
-                               prl(loc(b1)+" := " +loc(b1)+" + "+b2);
+                               prl(loc(b1)+" := " +loc(b1)+" + "+b2+";");
                                break;
                        }
                        //TODO new_ newarray
@@ -486,24 +486,24 @@ public class mjc2wsl{
                        }
 
                        // read, print
-                       case read:{
+                       case bread:{
                                //TODO make it a char for read
                                message("char is read like a number", M_WAR);
                                prl(createComment("char is read like a number",C_SPEC));
                        }
-                       case bread: {
+                       case read: {
                                prl("tempa := @String_To_Num(@Read_Line(Standard_Input_Port));");
                                prl(cmdToEStack("tempa"));
                                break;
                        }
 
                        // the prints
-                       case print:{
+                       case bprint:{
                                // TODO need to make it a char on print
                                message("chars will be printed as number codes", M_WAR);
                                prl(createComment("char will be printed as a number code",C_SPEC));
                        }
-                       case bprint: {
+                       case print: {
                                // TODO printing numbers needs different lengths of spacing
                                prl(getTopTwo());
                                pr(createComment("print spacing",C_SPEC));
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner