From: Doni Pracner Date: Fri, 18 Jul 2014 15:03:46 +0000 (+0200) Subject: experimental transf script, move the flag removal X-Git-Tag: v0.1.8~1^2~10 X-Git-Url: http://svarog.pmf.uns.ac.rs/gitweb/?p=mjc2wsl.git;a=commitdiff_plain;h=e3aa07cf26ec5907a0c477de3af8fcdfdb79edae;ds=sidebyside experimental transf script, move the flag removal --- diff --git a/src-wsl/transf-exp.wsl b/src-wsl/transf-exp.wsl index 1bffdbd..6e50137 100755 --- a/src-wsl/transf-exp.wsl +++ b/src-wsl/transf-exp.wsl @@ -45,11 +45,7 @@ MW_PROC @Process_Prog() == @Delete FI OD; - FOREACH Statement DO - IF @Trans?(TR_Flag_Removal) THEN - @Trans(TR_Flag_Removal, ""); - FI - OD; + C:"remove all the comments "; FOREACH Statement DO IF @ST(@I) = T_Comment THEN @@ -68,6 +64,11 @@ MW_PROC @Process_Prog() == @Trans(TR_Floop_To_While, ""); FI OD; + FOREACH Statement DO + IF @Trans?(TR_Flag_Removal) THEN + @Trans(TR_Flag_Removal, ""); + FI + OD; C:"Go back to the start, and remove redundant"; @GOTO(< >); @Trans(TR_Delete_All_Redundant, "");