summaryrefslogtreecommitdiff
path: root/src/GF/Speech/PrJSGF.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/PrJSGF.hs
parentb61cd635debd8d02c43abfc5760bee011576d9c3 (diff)
Moved profile stuff to GF.Speech.SRG, to allow other SRG formats to include SISR.
Diffstat (limited to 'src/GF/Speech/PrJSGF.hs')
-rw-r--r--src/GF/Speech/PrJSGF.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/GF/Speech/PrJSGF.hs b/src/GF/Speech/PrJSGF.hs
index 2a4c4fd51..6183b9826 100644
--- a/src/GF/Speech/PrJSGF.hs
+++ b/src/GF/Speech/PrJSGF.hs
@@ -54,11 +54,11 @@ prJSGF (SRG{grammarName=name,startCat=start,origStartCat=origStart,rules=rs})
| null rhs' = showString "<NULL>"
| otherwise = wrap "(" (unwordsS (map prSymbol rhs')) ")"
where rhs' = rmPunct rhs
- prSymbol (Cat c) = prCat c
+ prSymbol (Cat (c,_)) = prCat c
prSymbol (Tok t) = wrap "\"" (prtS t) "\""
prCat c = showChar '<' . showString c . showChar '>'
-rmPunct :: [Symbol String Token] -> [Symbol String Token]
+rmPunct :: [Symbol c Token] -> [Symbol c Token]
rmPunct [] = []
rmPunct (Tok t:ss) | all isPunct (prt t) = rmPunct ss
rmPunct (s:ss) = s : rmPunct ss