mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 03:09:33 -06:00
now the parser could return partial parse results
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user