Changeset 2958
- Timestamp:
- 05/11/05 02:34:32 (4 years ago)
- svk:copy_cache_prev:
- 4536
- Location:
- src
- Files:
-
- 4 modified
- 1 moved
-
Pugs/Compile.hs (modified) (2 diffs)
-
Pugs/Compile/Parrot.hs (modified) (3 diffs)
-
pge/PGE-Hs.pbc (modified) (previous)
-
pge/run_pge.pbc (modified) (previous)
-
pge/run_pge.pir (moved) (moved from src/pge/run_pge.imc)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Compile.hs
r2725 r2958 14 14 import Pugs.Internals 15 15 import Pugs.Compile.Pugs (genPugs) 16 import Pugs.Compile.Parrot (gen IMC)16 import Pugs.Compile.Parrot (genPIR) 17 17 import Pugs.Compile.Haskell (genGHC) 18 18 … … 20 20 compile "Haskell" env = fmap vCast $ runEvalIO env genGHC 21 21 compile "Pugs" env = fmap vCast $ runEvalIO env genPugs 22 compile "Parrot" env = fmap vCast $ runEvalIO env gen IMC22 compile "Parrot" env = fmap vCast $ runEvalIO env genPIR 23 23 compile s _ = fail $ "Cannot compile to " ++ s 24 24 -
src/Pugs/Compile/Parrot.hs
r2857 r2958 1 1 {-# OPTIONS_GHC -fglasgow-exts #-} 2 2 3 module Pugs.Compile.Parrot (gen IMC) where3 module Pugs.Compile.Parrot (genPIR) where 4 4 import Pugs.Internals 5 5 import Pugs.Pretty … … 17 17 compile x = fail ("Unrecognized construct: " ++ show x) 18 18 19 gen IMC:: Eval Val20 gen IMC= do19 genPIR :: Eval Val 20 genPIR = do 21 21 exp <- asks envBody 22 22 glob <- askGlobal … … 177 177 , label last 178 178 ] 179 -- XXX broken! this needs to emit IMC*outside* of the main sub179 -- XXX broken! this needs to emit PIR *outside* of the main sub 180 180 -- compile (Syn "module" [Val (VStr ns)]) = do 181 181 -- return $ text ".namespace ['_Pugs::" <> text ns <> text "']"
