Changeset 8675 for src/Pugs/CodeGen
- Timestamp:
- 01/15/06 08:26:19 (3 years ago)
- Location:
- src/Pugs/CodeGen
- Files:
-
- 1 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/CodeGen/PIL2.hs
r7866 r8675 4 4 module Pugs.CodeGen.PIL2 ( 5 5 genPIL2, 6 genPIL2Perl5, genPIL2Binary, genPIL2JSON 6 genPIL2Perl5, genPIL2Binary, genPIL2JSON, genPIL2YAML 7 7 ) where 8 8 import Pugs.Internals … … 15 15 import DrIFT.Binary 16 16 import DrIFT.JSON 17 import DrIFT.YAML 17 18 18 19 genPIL2 :: Eval Val … … 46 47 penv <- compile () :: Eval PIL_Environment 47 48 return . VStr . unlines $ [showJSON penv] 49 50 genPIL2YAML :: Eval Val 51 genPIL2YAML = do 52 penv <- compile () :: Eval PIL_Environment 53 yaml <- liftIO (showYaml penv) 54 return . VStr . unlines $ [yaml]
