Changeset 14317 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
10/17/06 08:24:53 (2 years ago)
Author:
audreyt
svk:copy_cache_prev:
21206
Message:

* Unify "if" and "unless" into the new (Syn "cond") node, which

allows for pointy clauses in conditionals:

if f -> $x {

...

}
elsif g -> $y {

...

}
else -> $z {

...

}

* Bump CompUnit? version; please rm blib6/lib/*.yml before remaking.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r13864 r14317  
    313313        isLogicalLazy _ = False 
    314314    compile exp@(Syn "if" _) = compConditional exp 
     315    compile exp@(Syn "cond" _) = compConditional exp 
    315316    compile (Syn "{}" (x:xs)) = compile $ App (_Var "&postcircumfix:{}") (Just x) xs 
    316317    compile (Syn "[]" (x:xs)) = do