Changeset 2958

Show
Ignore:
Timestamp:
05/11/05 02:34:32 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4536
Message:

* "imc" renamed to "pir" to agree with leo and pmichaud's nomenclature.

Location:
src
Files:
4 modified
1 moved

Legend:

Unmodified
Added
Removed
  • src/Pugs/Compile.hs

    r2725 r2958  
    1414import Pugs.Internals 
    1515import Pugs.Compile.Pugs (genPugs) 
    16 import Pugs.Compile.Parrot (genIMC) 
     16import Pugs.Compile.Parrot (genPIR) 
    1717import Pugs.Compile.Haskell (genGHC) 
    1818 
     
    2020compile "Haskell" env = fmap vCast $ runEvalIO env genGHC 
    2121compile "Pugs"    env = fmap vCast $ runEvalIO env genPugs 
    22 compile "Parrot"  env = fmap vCast $ runEvalIO env genIMC 
     22compile "Parrot"  env = fmap vCast $ runEvalIO env genPIR 
    2323compile s _ = fail $ "Cannot compile to " ++ s 
    2424 
  • src/Pugs/Compile/Parrot.hs

    r2857 r2958  
    11{-# OPTIONS_GHC -fglasgow-exts #-} 
    22 
    3 module Pugs.Compile.Parrot (genIMC) where 
     3module Pugs.Compile.Parrot (genPIR) where 
    44import Pugs.Internals 
    55import Pugs.Pretty 
     
    1717    compile x = fail ("Unrecognized construct: " ++ show x) 
    1818 
    19 genIMC :: Eval Val 
    20 genIMC = do 
     19genPIR :: Eval Val 
     20genPIR = do 
    2121    exp  <- asks envBody 
    2222    glob <- askGlobal 
     
    177177            , label last 
    178178            ] 
    179     -- XXX broken! this needs to emit IMC *outside* of the main sub 
     179    -- XXX broken! this needs to emit PIR *outside* of the main sub 
    180180    -- compile (Syn "module" [Val (VStr ns)]) = do 
    181181    --    return $ text ".namespace ['_Pugs::" <> text ns <> text "']"