1
0
forked from GitHub/gf-core

gf3 should not exit if there is a syntax error in the file

This commit is contained in:
krasimir
2008-04-17 12:50:51 +00:00
parent 08f92cd180
commit 0ea2798b3c
4 changed files with 24 additions and 21 deletions

View File

@@ -18,7 +18,7 @@ mainGFC xx = do
case opts of
_ | oElem (iOpt "help") opts -> putStrLn usageMsg
_ | oElem (iOpt "-make") opts -> do
gfcc <- compileToGFCC opts fs
gfcc <- appIOE (compileToGFCC opts fs) >>= err fail return
let gfccFile = targetNameGFCC opts (absname gfcc)
outputFile gfccFile (printGFCC gfcc)
mapM_ (alsoPrint opts gfcc) printOptions
@@ -32,7 +32,7 @@ mainGFC xx = do
mapM_ (alsoPrint opts gfcc) printOptions
_ -> do
mapM_ (batchCompile opts) (map return fs)
appIOE (mapM_ (batchCompile opts) (map return fs)) >>= err fail return
putStrLn "Done."
targetName :: Options -> CId -> String