Changeset 2790 for src/Main.hs

Show
Ignore:
Timestamp:
05/06/05 22:02:37 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
4340
Message:

* Pugs is now a registered Parrot compiler. To wit:

eval_parrot '

compreg $P0, "Pugs"
$S0 = "say qq[There... and back again!]"
$P0 = compile $P0, $S0
invoke $P0

';

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r2782 r2790  
    2929import Pugs.Compile 
    3030import qualified Data.Map as Map 
     31import Data.IORef 
    3132 
    3233-- |Pugs' entry point. Uses 'Pugs.Run.runWithArgs' to normalise the command-line  
     
    3536main = do 
    3637    hSetBuffering stdout NoBuffering 
     38    when (isJust _DoCompile) $ do 
     39        writeIORef (fromJust _DoCompile) doCompile 
    3740    runWithArgs run 
    3841