gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - minor updates to the print formating, the actions are now more easily disti...
authorDoni Pracner <quinnuendo@gmail.com>
Wed, 12 Feb 2014 17:56:04 +0000 (18:56 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Wed, 12 Feb 2014 17:56:04 +0000 (18:56 +0100)
src/mjc2wsl.java

index fe9b0bd19e41b4afddaf5d13d8aabb3d8c983bee..858cae30017462a3e99346d55bb7e958db7230f6 100644 (file)
@@ -344,7 +344,7 @@ public class mjc2wsl{
                while (op >= 0) {
                        if (originalInComments)
                                prl(createComment(describeOpCode(op), C_OC));
-                       prl("a" + counter + " == ");
+                       prl(" a" + counter + " == ");
                        if (genPrintForEachAddress) {
                                prl("PRINT(\"a" + counter + "\");");
                                if (genPauseAfterEachAddress)
@@ -562,7 +562,7 @@ public class mjc2wsl{
                        case return_: {
                                // we let the actions return
                                // there is nothing to clean up
-                               prl("SKIP END b" + counter + " ==");
+                               prl("SKIP\n END\n b" + counter + " ==");
                                break;
                        }
                        case enter: {
@@ -621,11 +621,11 @@ public class mjc2wsl{
                        op = get();
                        if (op >= 0)
                                if (wasJump)
-                                       prl("SKIP END");
+                                       prl("SKIP\n END");
                                else
-                                       prl("CALL a" + counter + " END");
+                                       prl("CALL a" + counter + "\n END");
                }
-               prl("\nSKIP END\nENDACTIONS;\n");
+               prl("SKIP\n END\nENDACTIONS;\n");
                prl(createStandardEnd());
        }
 
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner