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: 1cc5f85)
raw | patch | inline | side by side (parent: 1cc5f85)
author | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 11 Jun 2014 15:45:08 +0000 (17:45 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Wed, 11 Jun 2014 15:46:42 +0000 (17:46 +0200) |
src/mjc2wsl.java | patch | blob | history |
diff --git a/src/mjc2wsl.java b/src/mjc2wsl.java
index 11462f4b1acc706c12a3227615635a851f778fa7..6cd59e08a6d90082ee5b013cdd2519579713afe2 100644 (file)
--- a/src/mjc2wsl.java
+++ b/src/mjc2wsl.java
public String createStandardStart(int numWords){
StringBuilder ret = new StringBuilder(
"C:\" This file automatically converted from microjava bytecode\";\n"
- +"C:\" with mjc2wsl v "+versionN+"\";\n\n");
-
- ret.append(createAsciiString());
+ +"C:\" with mjc2wsl v "+versionN+"\";\n");
ret.append("\nBEGIN");
ret.append("\nVAR <\n\t");
ret.append("\nWHERE\n");
ret.append("\nFUNCT CHR(num) ==:\n");
- ret.append("\tSUBSTR(ascii,num,1)\n");
+ ret.append("\t@List_To_String(< num >)\n");
ret.append("END\n");
ret.append("\nPROC Print_MJ(val, format VAR)==\n");
ret.append("\nPROC Print_MJ_CHAR(val, format VAR)==\n");
ret.append(createComment("print spacing", C_SPEC));
- ret.append("\n\tIF val=10 OR val=13 THEN\n");
- ret.append("\t\tPRINT(\"\");\n");
- ret.append("\tELSE\n");
- ret.append("\t\tIF format>1 THEN\n\t\t\tFOR i:=2 TO ");
+ ret.append("\n\tIF format>1 THEN\n\t\tFOR i:=2 TO ");
ret.append("format STEP 1 DO PRINFLUSH(\" \") OD\n");
- ret.append("\t\tFI;\n\t\tPRINFLUSH(CHR(val))\n");
- ret.append("\tFI\n");
+ ret.append("\tFI;\n\tPRINFLUSH(CHR(val))\n");
ret.append("END\n");
ret.append("\nEND");