gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - return statment processing - let things return where they need to go
authorDoni Pracner <quinnuendo@gmail.com>
Tue, 10 Dec 2013 23:22:24 +0000 (00:22 +0100)
committerDoni Pracner <quinnuendo@gmail.com>
Tue, 10 Dec 2013 23:22:24 +0000 (00:22 +0100)
src/mjc2wsl.java

index 86743cf4ce550065181487564ebba4ce00415dec..69287f6460ba8c3edf0a0b0eef48829c055cc6b8 100644 (file)
@@ -355,8 +355,11 @@ public class mjc2wsl{
                        }
 
                        case return_: {
-                               prl(createComment("return not fully procesed yet"));
-                               message("return not fully procesed yet", M_WAR);
+                               prl("IF EMPTY?(mjvm_mstack) THEN CALL Z ELSE");
+                               //else we let things return             
+                               prl(cmdFromMStack("tempa"));
+                               prl("SKIP FI");
+                               prl("END b"+counter+" ==");
                                break;
                        }
                        case enter: {
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner