Changeset 6248 for src/Pugs/CodeGen/Perl5.hs
- Timestamp:
- 08/14/05 17:32:14 (3 years ago)
- svk:copy_cache_prev:
- 8452
- Files:
-
- 1 modified
-
src/Pugs/CodeGen/Perl5.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/CodeGen/Perl5.hs
r6236 r6248 6 6 import Pugs.AST 7 7 import Pugs.Compile 8 import Pugs.PIL1 8 9 import DrIFT.Perl5 9 10 10 11 genPerl5 :: Eval Val 11 12 genPerl5 = 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 () 16 14 return . VStr . unlines $ 17 15 [ "bless({" 18 , " pilMain => " ++ showPerl5 mainPIL++ ","19 , " pilGlob => " ++ showPerl5 globPIL16 , " pilMain => " ++ showPerl5 (pilMain penv) ++ "," 17 , " pilGlob => " ++ showPerl5 (pilGlob penv) 20 18 , "} => 'PIL::Environment')" 21 19 ]
