summaryrefslogtreecommitdiff
path: root/src/GF/Speech/TransformCFG.hs
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2006-01-04 21:41:12 +0000
committerbringert <bringert@cs.chalmers.se>2006-01-04 21:41:12 +0000
commita4ba93cc556dadc33ed95abd9baac0d29236bcfe (patch)
treecef6d169c72484ec7e187859a905a9c9247ac5e8 /src/GF/Speech/TransformCFG.hs
parente22275d467fe78930d2510219a98283422a8a452 (diff)
Build SLF networks with sublattices.
Diffstat (limited to 'src/GF/Speech/TransformCFG.hs')
-rw-r--r--src/GF/Speech/TransformCFG.hs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs
index 2c920cbda..f2a3a2fba 100644
--- a/src/GF/Speech/TransformCFG.hs
+++ b/src/GF/Speech/TransformCFG.hs
@@ -120,6 +120,9 @@ isDirectLeftRecursive _ = False
-- * CFG rule utilities
--
+allCats :: CFRules -> [Cat_]
+allCats = map fst
+
catRules :: CFRules -> Cat_ -> [CFRule_]
catRules rs c = fromMaybe [] (lookup c rs)