diff options
Diffstat (limited to 'src/GF/Speech/SRG.hs')
| -rw-r--r-- | src/GF/Speech/SRG.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/GF/Speech/SRG.hs b/src/GF/Speech/SRG.hs index cee210dff..359672d63 100644 --- a/src/GF/Speech/SRG.hs +++ b/src/GF/Speech/SRG.hs @@ -12,6 +12,7 @@ module GF.Speech.SRG (SRG(..), SRGRule(..), SRGAlt(..), SRGItem, SRGSymbol , SRGNT, CFTerm , ebnfPrinter , nonLeftRecursivePrinter + , regularPrinter , makeSimpleSRG , makeNonRecursiveSRG , getSpeechLanguage @@ -73,6 +74,9 @@ ebnfPrinter pgf cnc = prSRG $ makeSRG id pgf cnc nonLeftRecursivePrinter :: PGF -> CId -> String nonLeftRecursivePrinter pgf cnc = prSRG $ makeSRG removeLeftRecursion pgf cnc +regularPrinter :: PGF -> CId -> String +regularPrinter pgf cnc = prSRG $ makeSRG makeRegular pgf cnc + makeSRG :: (CFG -> CFG) -> PGF -> CId -> SRG makeSRG = mkSRG cfgToSRG where |
