Changeset 5667 for src/Pugs/Compile.hs
- Timestamp:
- 07/18/05 17:53:32 (3 years ago)
- svk:copy_cache_prev:
- 7648
- Files:
-
- 1 modified
-
src/Pugs/Compile.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Compile.hs
r5662 r5667 261 261 compile (Syn "loop" [pre, cond, post, (Syn "block" [body])]) = do 262 262 preC <- compile pre 263 condC <- compile cond 263 -- loop ...; ; ... {...} -> 264 -- loop ...; bool::true; ... {...} 265 let cond' | unwrap cond == Noop 266 = return $ PStmts (PStmt . PLit . PVal $ VBool True) PNil 267 | otherwise 268 = compile cond 269 condC <- cond' 264 270 bodyC <- compile body 265 271 postC <- compile post
