diff options
| author | aarne <aarne@chalmers.se> | 2010-01-28 16:27:28 +0000 |
|---|---|---|
| committer | aarne <aarne@chalmers.se> | 2010-01-28 16:27:28 +0000 |
| commit | d333c0564b581504ef262d83f383684665fbcf8a (patch) | |
| tree | 57c6f0bd3dd063af9aa5284e3926d074f9b547b7 /src/compiler/GF/Command | |
| parent | e056cc2bfd2e5e152edd9829b8d4d77637536a14 (diff) | |
example_based returns the list of all unknown words
Diffstat (limited to 'src/compiler/GF/Command')
| -rw-r--r-- | src/compiler/GF/Command/Commands.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/GF/Command/Commands.hs b/src/compiler/GF/Command/Commands.hs index b56c19d72..1d3ccd833 100644 --- a/src/compiler/GF/Command/Commands.hs +++ b/src/compiler/GF/Command/Commands.hs @@ -255,7 +255,8 @@ allCommands cod env@(pgf, mos) = Map.fromList [ let file = optFile opts mprobs <- optProbs opts pgf let conf = configureExBased pgf (optMorpho opts) mprobs (optLang opts) - file' <- parseExamplesInGrammar conf file + (file',ws) <- parseExamplesInGrammar conf file + if null ws then return () else putStrLn ("unknown words: " ++ unwords ws) return (fromString ("wrote " ++ file')), needsTypeCheck = False }), |
