mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-06-02 14:48:54 -06:00
another bug related to mattern matching on multiword expression
This commit is contained in:
@@ -107,6 +107,10 @@ tryMatch (p,t) = do
|
|||||||
return (concat matches)
|
return (concat matches)
|
||||||
(PT _ p',_) -> trym p' t'
|
(PT _ p',_) -> trym p' t'
|
||||||
|
|
||||||
|
(PAs x p',([],K s,[])) -> do
|
||||||
|
subst <- trym p' t'
|
||||||
|
return $ (x,words2term (words s)) : subst
|
||||||
|
|
||||||
(PAs x p',_) -> do
|
(PAs x p',_) -> do
|
||||||
subst <- trym p' t'
|
subst <- trym p' t'
|
||||||
return $ (x,t) : subst
|
return $ (x,t) : subst
|
||||||
|
|||||||
Reference in New Issue
Block a user