gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f48f8a)
raw | patch | inline | side by side (parent: 3f48f8a)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 30 Jul 2014 20:16:12 +0000 (22:16 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 30 Jul 2014 20:16:12 +0000 (22:16 +0200) |
src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java | patch | blob | history |
diff --git a/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java b/src/com/quemaster/transformations/mjc2wsl/mjc2wsl.java
index c890fefed757c443c72e6ae48d3ac3ba5f1fcad5..78f30eb36c060084259e14f7a54df26b1879bcac 100644 (file)
// read, print
case bread: {
- // TODO make it a char for read
- messages.message("char is read like a number", TransMessages.M_WAR);
- prl(createComment("char is read like a number", C_SPEC));
+ // TODO maybe we'll need a bufer for multi chars!
+ prl(createStartVar("tempa"));
+ prl("@Read_Line_Proc(VAR tempa, Standard_Input_Port);");
+ prl("tempa := @String_To_List(tempa)[1];");
+ prl(createToEStack("tempa"));
+ prl(createEndVar());
+ break;
}
case read: {
prl(createStartVar("tempa"));