From 31856ebb4cf9aa181b2875c88e964cefae319c96 Mon Sep 17 00:00:00 2001 From: krasimir Date: Wed, 19 May 2010 12:31:36 +0000 Subject: now the parser could return partial parse results --- src/compiler/GF/Command/Commands.hs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/compiler/GF/Command') diff --git a/src/compiler/GF/Command/Commands.hs b/src/compiler/GF/Command/Commands.hs index 2de7fb9cf..2ea3e169c 100644 --- a/src/compiler/GF/Command/Commands.hs +++ b/src/compiler/GF/Command/Commands.hs @@ -1004,9 +1004,7 @@ allCommands env@(pgf, mos) = Map.fromList [ toString = unwords . toStrings fromParse opts ts parses - | isOpt "bracket" opts = case catMaybes bss of - [] -> ([], "no brackets found") - bss -> ([], unlines $ map showBracketedString bss) + | isOpt "bracket" opts = ([], unlines $ map showBracketedString bss) | otherwise = case ts of [] -> ([], "no trees found" ++ missingWordMsg (optMorpho opts) (concatMap words (toStrings ts)) -- cgit v1.2.3