gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - add warnings and comments when reading and writing chars that are not conve...
authorDoni Pracner <quinnuendo@gmail.com>
Mon, 13 Jan 2014 18:51:07 +0000 (19:51 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Mon, 13 Jan 2014 19:10:45 +0000 (20:10 +0100)
src/mjc2wsl.java

index df846c95e9ebe360daa6364dbd318b1f12ae6b5e..c8da105e4bff4a081b92d20fd690f4a16f6fbc64 100644 (file)
@@ -432,18 +432,24 @@ public class mjc2wsl{
                        }
 
                        // read, print
-                       case bread:
-                       case read: {
+                       case read:{
                                //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: {
                                prl("tempa := @String_To_Num(@Read_Line(Standard_Input_Port));");
                                prl(cmdToEStack("tempa"));
                                break;
                        }
 
                        // the prints
-                       case bprint: 
-                       case print: {
+                       case print:{
                                // 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: {
                                // 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