From 16b6eee0dce46948aca7f014514d5cfc76b4774e Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Mon, 13 Jan 2014 19:51:07 +0100 Subject: [PATCH] mjc2wsl - add warnings and comments when reading and writing chars that are not converter from number codes --- src/mjc2wsl.java | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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)); -- 2.25.1