summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2007-03-25 16:34:53 +0000
committerbringert <bringert@cs.chalmers.se>2007-03-25 16:34:53 +0000
commitde0ca9f533523ee0a815c5f0d06c58053c542f91 (patch)
treeaa4f20c796f65942eff6b405df5aa5ff8bcaaeb4 /src
parent4490e256a8cd20f438623f504cac6e44eb023328 (diff)
commented LC_LR modification
Diffstat (limited to 'src')
-rw-r--r--src/GF/Speech/TransformCFG.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs
index af64f3a89..6a66bc5f0 100644
--- a/src/GF/Speech/TransformCFG.hs
+++ b/src/GF/Speech/TransformCFG.hs
@@ -145,6 +145,8 @@ removeLeftRecursion start gr
x <- properLeftCornersOf a,
not (isLeftRecursive x),
let a_x = mkCat (Cat a) x,
+ -- this is an extension of LC_LR to avoid generating
+ -- A-X categories for which there are no productions:
a_x `Set.member` newCats,
let n' = symbol (\_ -> CFApp (CFRes 1) (CFRes 0))
(\_ -> CFRes 0) x]