diff options
| author | bringert <bringert@cs.chalmers.se> | 2007-03-25 16:11:51 +0000 |
|---|---|---|
| committer | bringert <bringert@cs.chalmers.se> | 2007-03-25 16:11:51 +0000 |
| commit | 85072fb6b2ae8cb7e44b35286daabfd71e4811d3 (patch) | |
| tree | 7ef021bf40a06c45bedef7197fedf4d8d8b26ad2 /src | |
| parent | 43311670119318d031c660a788716eda9b7bd618 (diff) | |
Added srg0006: A grammar with a cycle caused by an empty production.
Diffstat (limited to 'src')
| -rw-r--r-- | src/GF/Speech/TransformCFG.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/Speech/TransformCFG.hs b/src/GF/Speech/TransformCFG.hs index 93f2a1be9..f687e86df 100644 --- a/src/GF/Speech/TransformCFG.hs +++ b/src/GF/Speech/TransformCFG.hs @@ -88,7 +88,7 @@ stateGFCC = mkGFCC . mkCanon2gfcc . stateGrammarST -- * Grammar filtering --- | Removes all directly cyclic productions. +-- | Removes all directly and indirectly cyclic productions. removeCycles :: CFRules -> CFRules removeCycles = groupProds . removeCycles_ . ungroupProds where removeCycles_ rs = [r | r@(CFRule c rhs _) <- rs, rhs /= [Cat c]] |
