mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
Replace "CId" with "Language" in type signature for PGF.tabularLinearizes
This commit is contained in:
@@ -50,7 +50,7 @@ firstLin (_,arr)
|
|||||||
|
|
||||||
-- | Creates a table from feature name to linearization.
|
-- | Creates a table from feature name to linearization.
|
||||||
-- The outher list encodes the variations
|
-- The outher list encodes the variations
|
||||||
tabularLinearizes :: PGF -> CId -> Expr -> [[(String,String)]]
|
tabularLinearizes :: PGF -> Language -> Expr -> [[(String,String)]]
|
||||||
tabularLinearizes pgf lang e = map cnv (linTree pgf lang e)
|
tabularLinearizes pgf lang e = map cnv (linTree pgf lang e)
|
||||||
where
|
where
|
||||||
cnv ((cat,_),lin) = zip (lbls cat) $ map (unwords . concatMap flattenBracketedString . snd . untokn "") (elems lin)
|
cnv ((cat,_),lin) = zip (lbls cat) $ map (unwords . concatMap flattenBracketedString . snd . untokn "") (elems lin)
|
||||||
|
|||||||
Reference in New Issue
Block a user