compiler "gfc" in GF/Devel

This commit is contained in:
aarne
2007-09-20 22:37:09 +00:00
parent 6e4104ffa9
commit 58a87653cc
8 changed files with 1785 additions and 0 deletions

20
src/GF/Devel/GFC.hs Normal file
View File

@@ -0,0 +1,20 @@
module Main where
import GF.Devel.Compile
import GF.Devel.GrammarToGFCC
import System
main = do
xx <- getArgs
case xx of
"-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"
_ -> do
mapM_ batchCompile (map return xx)
putStrLn "Done."