Changeset 2411
- Timestamp:
- 04/27/05 21:58:01 (4 years ago)
- svk:copy_cache_prev:
- 3914
- Location:
- src/Pugs
- Files:
-
- 2 modified
-
Compile.hs (modified) (2 diffs)
-
Compile/Parrot.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Compile.hs
r2401 r2411 14 14 import Pugs.Internals 15 15 import Pugs.Compile.Pugs (genPugs) 16 import Pugs.Compile.Parrot (gen PIR)16 import Pugs.Compile.Parrot (genIMC) 17 17 import Pugs.Compile.Haskell (genGHC) 18 18 … … 20 20 compile "Haskell" env = fmap vCast $ runEval env genGHC 21 21 compile "Pugs" env = fmap vCast $ runEval env genPugs 22 compile "Parrot" env = fmap vCast $ runEval env gen PIR22 compile "Parrot" env = fmap vCast $ runEval env genIMC 23 23 compile s _ = fail $ "Cannot compile to " ++ s 24 24 -
src/Pugs/Compile/Parrot.hs
r2405 r2411 19 19 compile x = fail ("Unrecognized construct: " ++ show x) 20 20 21 gen PIR:: Eval Val22 gen PIR= do21 genIMC :: Eval Val 22 genIMC = do 23 23 Env{ envBody = exp, envGlobal = globRef } <- ask 24 24
