Changeset 2782 for src/Main.hs
- Timestamp:
- 05/06/05 20:50:08 (4 years ago)
- svk:copy_cache_prev:
- 4340
- Files:
-
- 1 modified
-
src/Main.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r2774 r2782 140 140 putStrLn str 141 141 142 doCompile :: [Char]-> FilePath -> String -> IO String142 doCompile :: String -> FilePath -> String -> IO String 143 143 doCompile backend = doParseWith $ \env _ -> do 144 144 globRef <- liftSTM $ do … … 147 147 compile backend env{ envGlobal = globRef } 148 148 149 doCompileDump :: [Char]-> FilePath -> String -> IO ()149 doCompileDump :: String -> FilePath -> String -> IO () 150 150 doCompileDump backend file prog = do 151 151 str <- doCompile backend file prog 152 152 writeFile "dump.ast" str 153 153 154 doCompileRun :: [Char]-> FilePath -> String -> IO ()154 doCompileRun :: String -> FilePath -> String -> IO () 155 155 doCompileRun backend file prog = do 156 156 str <- doCompile backend file prog
