gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - FIX num-char print-read were the other way around
authorDoni Pracner <quinnuendo@gmail.com>
Sun, 19 Jan 2014 19:43:03 +0000 (20:43 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Sun, 19 Jan 2014 19:43:03 +0000 (20:43 +0100)
src/mjc2wsl.java

index 16b0e3766a5c721e008097b7f223841b105fae4b..77678a0beafefd26d47cee8adb44ec1bda285194 100644 (file)
@@ -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