diff options
| author | aarne <aarne@cs.chalmers.se> | 2006-05-18 14:59:58 +0000 |
|---|---|---|
| committer | aarne <aarne@cs.chalmers.se> | 2006-05-18 14:59:58 +0000 |
| commit | 7fa31cc6447718f166b1963f79f9e58ac25a88c9 (patch) | |
| tree | 15d8c5a7417c3612e031bd006e64b87ca713d4eb /src/GF/Shell.hs | |
| parent | 747eccf2df19fa85a09b72cd1786372367c21976 (diff) | |
Wordlist format
Diffstat (limited to 'src/GF/Shell.hs')
| -rw-r--r-- | src/GF/Shell.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GF/Shell.hs b/src/GF/Shell.hs index bdbf6d62c..4b9660ced 100644 --- a/src/GF/Shell.hs +++ b/src/GF/Shell.hs @@ -50,6 +50,7 @@ import GF.Infra.Option import GF.UseGrammar.Information import GF.Shell.HelpFile import GF.Compile.PrOld +import GF.Compile.Wordlist import GF.Grammar.PrGrammar import Control.Monad (foldM,liftM) @@ -189,6 +190,10 @@ execLine put (c@(co, os), arg, cs) (outps,st) = do execC :: CommandOpt -> ShellIO execC co@(comm, opts0) sa@(sh@(st,(h,_,_,_)),a) = checkOptions st co >> case comm of + CImport file | fileSuffix file == "gfwl" -> do + fs <- mkWordlist file + foldM (\x y -> execC (CImport y, opts) x) sa fs + CImport file | oElem fromExamples opts -> do es <- liftM nub $ getGFEFiles opts file system $ "gf -examples" +++ unlines es |
