Created
March 7, 2013 10:41
-
-
Save brinchj/5107161 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(lblX, SIf cond lblY) <- ifP | |
body1 <- untilLabel lblY | |
case lastMay body1 of | |
-- if with else (body1 ends in GOTO) | |
Just (_, SGoto lblZ) -> do | |
body2 <- untilLabel lblZ | |
return [(lblX, SIfElse cond body2 (init body1))] | |
-- if with no else | |
_ -> return [lblX, SIfElse cond [] body1)] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment