Changeset 5008 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
06/26/05 19:19:20 (3 years ago)
Author:
iblech
svk:copy_cache_prev:
6856
Message:

Syntax but ($obj but {...}).
* t/oo/syntax-but.t -- Fixed test.
* Prelude -- Added Pugs::Internals helper sub.
* Pugs.Eval -- Implemented syntax but in the interpreter core...
* Pugs.Compile -- ...and in the compiler part of Pugs.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r4955 r5008  
    342342        let op = "&infix:" ++ init syn 
    343343        compile $ Syn "=" [lhs, App (Var op) Nothing [lhs, exp]] 
     344    compile (Syn "but" [obj, block]) = 
     345        compile $ App (Var "&Pugs::Internals::but_block") Nothing [obj, block] 
    344346    compile exp = compError exp 
    345347