Changeset 4851 for src/Main.hs

Show
Ignore:
Timestamp:
06/19/05 18:16:50 (4 years ago)
Author:
autrijus
svk:copy_cache_prev:
6641
Message:

* no longer use dump.ast -- -C now prints directly to stdout.

Suggested by Juerd.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Main.hs

    r4825 r4851  
    167167doCompileDump backend file prog = do 
    168168    str <- doCompile backend' file prog 
    169     writeFile "dump.ast" str 
     169    putStr str 
    170170    where 
    171171    backend' = capitalizeWord backend 
     
    304304 
    305305runPIR :: String -> IO () 
    306 runPIR str = do 
    307     withArgs ["-CPIR", "-e", str] main 
    308     evalParrotFile "dump.ast" 
     306runPIR = do 
     307    pir <- doCompile "PIR" "-" 
     308    writeFile "a.pir" pir 
     309    evalParrotFile "a.pir"