gfc --make now works

This commit is contained in:
aarne
2007-09-21 07:37:47 +00:00
parent 58a87653cc
commit 58d34eca14
3 changed files with 7 additions and 17 deletions

View File

@@ -2,6 +2,7 @@ module Main where
import GF.Devel.Compile
import GF.Devel.GrammarToGFCC
---import GF.Devel.PrGrammar ---
import System
@@ -12,9 +13,9 @@ main = do
"-help":[] -> putStrLn "usage: gfc (--make) FILES"
"--make":fs -> do
gr <- batchCompile fs
putStrLn $ prGrammar2gfcc gr ---
--- writeFile "a.gfcc" $ prGrammar2gfcc gr
--- putStrLn "wrote file a.gfcc"
--- putStrLn $ prGrammar gr
writeFile "a.gfcc" $ prGrammar2gfcc gr
putStrLn "Wrote file a.gfcc."
_ -> do
mapM_ batchCompile (map return xx)
putStrLn "Done."