mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-12 12:42:50 -06:00
gfc --make now works
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user