Changeset 10228 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
05/06/06 00:58:03 (3 years ago)
Author:
lwall
svk:copy_cache_prev:
13387
Message:

C-style loop requires parens.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r10087 r10228  
    216216    compile (Syn "loop" [pre, cond, post, (Syn "block" [body])]) = do 
    217217        preC    <- compile pre 
    218         -- loop ...; ; ... {...} -> 
    219         -- loop ...; bool::true; ... {...} 
     218        -- loop (...; ; ...) {...} -> 
     219        -- loop (...; bool::true; ...) {...} 
    220220        let cond' | unwrap cond == Noop 
    221221                  = return $ PStmts (PStmt . PLit . PVal $ VBool True) PNil