Changeset 3629 for src/Main.hs
- Timestamp:
- 05/22/05 08:08:51 (4 years ago)
- svk:copy_cache_prev:
- 5201
- Files:
-
- 1 modified
-
src/Main.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r3538 r3629 159 159 doCompileDump :: String -> FilePath -> String -> IO () 160 160 doCompileDump backend file prog = do 161 str <- doCompile backend file prog161 str <- doCompile backend' file prog 162 162 writeFile "dump.ast" str 163 where 164 backend' = capitalizeWord backend 165 capitalizeWord [] = [] 166 capitalizeWord (c:cs) = toUpper c:(map toLower cs) 163 167 164 168 doCompileRun :: String -> FilePath -> String -> IO () 165 169 doCompileRun backend file prog = do 166 str <- doCompile backend file prog 167 evalEmbedded backend str 170 str <- doCompile backend' file prog 171 evalEmbedded backend' str 172 where 173 backend' = capitalizeWord backend 174 capitalizeWord [] = [] 175 capitalizeWord (c:cs) = toUpper c:(map toLower cs) 168 176 169 177 doParseWith :: (Env -> FilePath -> IO a) -> FilePath -> String -> IO a
