From 741dde5a2a00dc737e570a7005663c2534ea4f6d Mon Sep 17 00:00:00 2001 From: bringert Date: Fri, 5 Jan 2007 14:34:20 +0000 Subject: Change input to the different SRG printers to be StateGrammar instead of CGrammar. This to allow looking at the types in SISR, and to reduce the number of argument passed from Custom. --- src/GF/Speech/PrRegExp.hs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/GF/Speech/PrRegExp.hs') diff --git a/src/GF/Speech/PrRegExp.hs b/src/GF/Speech/PrRegExp.hs index c0aadab00..0f661edac 100644 --- a/src/GF/Speech/PrRegExp.hs +++ b/src/GF/Speech/PrRegExp.hs @@ -14,8 +14,9 @@ import GF.Conversion.Types import GF.Infra.Ident import GF.Speech.CFGToFiniteState import GF.Speech.RegExp +import GF.Compile.ShellState (StateGrammar) regexpPrinter :: Ident -- ^ Grammar name - -> String -> CGrammar -> String -regexpPrinter name start cfg = prRE $ dfa2re $ cfgToFA start cfg + -> String -> StateGrammar -> String +regexpPrinter name start = prRE . dfa2re . cfgToFA start -- cgit v1.2.3