Changeset 5030
- Timestamp:
- 06/27/05 21:28:19 (4 years ago)
- svk:copy_cache_prev:
- 6880
- Files:
-
- 1 modified
-
src/Pugs/CodeGen/PIL.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/CodeGen/PIL.hs
r5029 r5030 8 8 import Pugs.Compile 9 9 10 {-| Compiles the current environment to PIR code. -}11 10 genPIL :: Eval Val 12 11 genPIL = do 12 glob <- askGlobal 13 13 main <- asks envBody 14 globPIL <- compile glob :: Eval [PIL Decl] 14 15 mainPIL <- compile main :: Eval (PIL [Stmt]) 15 return . VStr $ show mainPIL 16 return . VStr . unlines $ 17 [ "PIL_Environment" 18 , " { pilMain = (" ++ show mainPIL ++ ")" 19 , " , pilGlob = (" ++ show globPIL ++ ")" 20 , " }" 21 ]
