Changeset 5853 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
07/27/05 21:49:57 (3 years ago)
Author:
iblech
svk:copy_cache_prev:
7758
Message:

* t/subroutines/subroutine.t -- unEVAL.
* Pugs.Compile -- Emit &circumfix:<${ }> for Syn "${}" (and similar for

@{}, etc.) so I can implement the dereferencers in PIL2JS.

* PIL2JS: Prelude::JS::Ref -- Implemented ${}, @{}, etc.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r5721 r5853  
    357357    compile (Syn "\\[]" exps) = do 
    358358        compile (App (Var "&circumfix:[]") Nothing exps) 
     359    compile (Syn name@(sigil:"{}") exps) | (sigil ==) `any` "$@%&" = do 
     360        compile (App (Var $ "&circumfix:" ++ name) Nothing exps) 
    359361    compile (Syn "\\{}" exps) = do 
    360362        compile (App (Var "&circumfix:{}") Nothing exps)