mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-01 06:33:37 -06:00
finnish the patterns in the case statement
This commit is contained in:
@@ -258,7 +258,9 @@ parse_ gr (CId lang) cat dp sent =
|
||||
case Map.lookup lang (PGF2.languages gr) of
|
||||
Just cnc -> case (PGF2.parse cnc cat sent,dp) of
|
||||
(ParseOk ts, Just n) -> (ParseOk (map fst (take n ts)),noBS)
|
||||
--(res, ) -> res
|
||||
(ParseOk ts, Nothing) -> (ParseOk (map fst ts),noBS)
|
||||
(ParseFailed pos,_ ) -> (ParseFailed pos,noBS)
|
||||
(ParseIncomplete,_ ) -> (ParseIncomplete,noBS)
|
||||
Nothing -> error ("Unknown language: " ++ lang)
|
||||
|
||||
complete :: PGF -> Language -> Type -> String -> String -> (BracketedString,String,Map.Map Token [CId])
|
||||
|
||||
Reference in New Issue
Block a user