Changeset 5410 for src/Pugs/Compile.hs

Show
Ignore:
Timestamp:
07/11/05 15:16:51 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
7349
Message:

* Test.pm passes PIR compilation again.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r5168 r5410  
    1717import Pugs.Eval 
    1818import Pugs.Eval.Var 
     19import Pugs.Monads 
    1920import Emit.PIR 
    2021import Text.PrettyPrint 
     
    226227        tailCall (PPos pos exp x) = PPos pos exp (tailCall x) 
    227228        tailCall x = x 
     229    Stmts this (Syn "namespace" [Val (VStr pkg), rest]) -> do 
     230        thisC   <- enter cxtVoid $ compile this 
     231        restC   <- enterPackage pkg $ compileStmts rest 
     232        return $ PStmts thisC restC 
    228233    Stmts this rest -> do 
    229234        thisC   <- enter cxtVoid $ compile this