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/Perl5.hs

    r6236 r6248  
    66import Pugs.AST 
    77import Pugs.Compile 
     8import Pugs.PIL1 
    89import DrIFT.Perl5 
    910 
    1011genPerl5 :: Eval Val 
    1112genPerl5 = do 
    12     glob        <- askGlobal 
    13     main        <- asks envBody 
    14     globPIL     <- compile glob :: Eval [PIL_Decl] 
    15     mainPIL     <- compile main :: Eval PIL_Stmts 
     13    penv <- compile () 
    1614    return . VStr . unlines $ 
    1715        [ "bless({" 
    18         , "    pilMain => " ++ showPerl5 mainPIL ++ "," 
    19         , "    pilGlob => " ++ showPerl5 globPIL 
     16        , "    pilMain => " ++ showPerl5 (pilMain penv) ++ "," 
     17        , "    pilGlob => " ++ showPerl5 (pilGlob penv) 
    2018        , "} => 'PIL::Environment')" 
    2119        ]