summaryrefslogtreecommitdiff
path: root/src/GF/Devel/GFC.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/GF/Devel/GFC.hs')
-rw-r--r--src/GF/Devel/GFC.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/GF/Devel/GFC.hs b/src/GF/Devel/GFC.hs
new file mode 100644
index 000000000..561d37060
--- /dev/null
+++ b/src/GF/Devel/GFC.hs
@@ -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."