From d333c0564b581504ef262d83f383684665fbcf8a Mon Sep 17 00:00:00 2001 From: aarne Date: Thu, 28 Jan 2010 16:27:28 +0000 Subject: example_based returns the list of all unknown words --- src/compiler/GF/Command/Commands.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/compiler/GF/Command') 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 }), -- cgit v1.2.3