Show
Ignore:
Timestamp:
08/14/05 17:32:14 (3 years ago)
Author:
autrijus
svk:copy_cache_prev:
8452
Message:

* -CBinary - dump PIL1 tree as opaque GhcBinary? file for fast loading.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/CodeGen/PIL.hs

    r6229 r6248  
    55import Pugs.Internals 
    66import Pugs.AST 
     7import Pugs.PIL1 
    78import Pugs.Compile 
    89 
    910genPIL :: Eval Val 
    1011genPIL = do 
    11     glob        <- askGlobal 
    12     main        <- asks envBody 
    13     globPIL     <- compile glob :: Eval [PIL_Decl] 
    14     mainPIL     <- compile main :: Eval PIL_Stmts 
     12    penv <- compile () 
    1513    return . VStr . unlines $ 
    1614        [ "PIL_Environment" 
    17         , "    { pilMain = (" ++ show mainPIL ++ ")" 
    18         , "    , pilGlob = (" ++ show globPIL ++ ")" 
     15        , "    { pilMain = (" ++ show (pilMain penv) ++ ")" 
     16        , "    , pilGlob = (" ++ show (pilGlob penv) ++ ")" 
    1917        , "    }" 
    2018        ]