summaryrefslogtreecommitdiff
path: root/src/GF/Speech/PrGSL.hs
diff options
context:
space:
mode:
authorbringert <bringert@cs.chalmers.se>2006-12-12 11:59:12 +0000
committerbringert <bringert@cs.chalmers.se>2006-12-12 11:59:12 +0000
commit1c8e32e6415e28531604c626ce18e2d6db144393 (patch)
treea8bb3739307e93c900ba6b587a7273218a0a0655 /src/GF/Speech/PrGSL.hs
parentb61cd635debd8d02c43abfc5760bee011576d9c3 (diff)
Moved profile stuff to GF.Speech.SRG, to allow other SRG formats to include SISR.
Diffstat (limited to 'src/GF/Speech/PrGSL.hs')
-rw-r--r--src/GF/Speech/PrGSL.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/Speech/PrGSL.hs b/src/GF/Speech/PrGSL.hs
index ffcd00509..d9e248499 100644
--- a/src/GF/Speech/PrGSL.hs
+++ b/src/GF/Speech/PrGSL.hs
@@ -50,7 +50,7 @@ prGSL (SRG{grammarName=name,startCat=start,origStartCat=origStart,rules=rs})
. prCat cat . sp . wrap "[" (unwordsS (map prAlt rhs)) "]" . nl
-- FIXME: use the probability
prAlt (SRGAlt mp _ rhs) = wrap "(" (unwordsS (map prSymbol rhs)) ")"
- prSymbol (Cat c) = prCat c
+ prSymbol (Cat (c,_)) = prCat c
prSymbol (Tok t) = wrap "\"" (showString (showToken t)) "\""
-- GSL requires an upper case letter in category names
prCat c = showString (firstToUpper c)