From dbfef31538e1bb96cdfe8f17884559fdf6ad680f Mon Sep 17 00:00:00 2001 From: bringert Date: Thu, 13 Apr 2006 14:47:37 +0000 Subject: Removed cycles when building SRGs, to avoid getting left-recursive grammars. --- src/GF/Speech/SRG.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/GF/Speech/SRG.hs') diff --git a/src/GF/Speech/SRG.hs b/src/GF/Speech/SRG.hs index 8080b941f..03204d888 100644 --- a/src/GF/Speech/SRG.hs +++ b/src/GF/Speech/SRG.hs @@ -74,7 +74,7 @@ makeSimpleSRG :: Ident -- ^ Grammar name -> CGrammar -- ^ A context-free grammar -> SRG makeSimpleSRG - = makeSRG_ (removeLeftRecursion . removeIdenticalRules . removeEmptyCats) + = makeSRG_ (removeLeftRecursion . removeIdenticalRules . removeEmptyCats . removeCycles) -- | Create a SRG preserving the names, profiles and probabilities of the -- input grammar. The returned grammar may be left-recursive. -- cgit v1.2.3