From: Doni Pracner Date: Mon, 13 Jan 2014 18:51:07 +0000 (+0100) Subject: mjc2wsl - add warnings and comments when reading and writing chars that are not conve... X-Git-Tag: v0.1.4~28 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=16b6eee0dce46948aca7f014514d5cfc76b4774e;p=mjc2wsl.git mjc2wsl - add warnings and comments when reading and writing chars that are not converter from number codes --- diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java index df846c9..c8da105 100644 --- a/src/mjc2wsl.java +++ b/src/mjc2wsl.java @@ -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));