mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-12 22:39:31 -06:00
fixed variants bug in GFCC.Linearize: l. 64,46 'r' must be 'p'
This commit is contained in:
@@ -61,7 +61,7 @@ compute mcfg lang args = comp where
|
||||
|
||||
proj r p = case (r,p) of
|
||||
(_, FV ts) -> FV $ lmap (proj r) ts
|
||||
(FV ts, _ ) -> FV $ lmap (\t -> proj t r) ts
|
||||
(FV ts, _ ) -> FV $ lmap (\t -> proj t p) ts
|
||||
(W s t, _) -> kks (s ++ getString (proj t p))
|
||||
_ -> comp $ getField r (getIndex p)
|
||||
|
||||
|
||||
@@ -363,6 +363,7 @@ compute gfcc lang args = comp where
|
||||
|
||||
proj r p = case (r,p) of
|
||||
(_, FV ts) -> FV $ Prelude.map (proj r) ts
|
||||
(FV ts, _ ) -> FV $ Prelude.map (\t -> proj t p) ts
|
||||
(W s t, _) -> kks (s ++ getString (proj t p))
|
||||
_ -> comp $ getField r (getIndex p)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user