mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-21 07:03:11 -06:00
now the parser could return partial parse results
This commit is contained in:
1 parent
ec227abe43
commit
31856ebb4c
4 files changed
+56
-30
No files matched your search
@@ -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