From d13b32ea48d255c71670321c9b8d0d611afe0a17 Mon Sep 17 00:00:00 2001 From: bjorn Date: Tue, 17 Jun 2008 12:29:11 +0000 Subject: Refactor grammar export code. --- src-3.0/GF/Speech/PGFToCFG.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src-3.0/GF/Speech') diff --git a/src-3.0/GF/Speech/PGFToCFG.hs b/src-3.0/GF/Speech/PGFToCFG.hs index 168591e6b..1f3ebaeb4 100644 --- a/src-3.0/GF/Speech/PGFToCFG.hs +++ b/src-3.0/GF/Speech/PGFToCFG.hs @@ -4,7 +4,7 @@ -- -- Approximates PGF grammars with context-free grammars. ---------------------------------------------------------------------- -module GF.Speech.PGFToCFG (pgfToCFG) where +module GF.Speech.PGFToCFG (bnfPrinter, pgfToCFG) where import PGF.CId import PGF.Data as PGF @@ -19,6 +19,8 @@ import Data.Maybe import Data.Set (Set) import qualified Data.Set as Set +bnfPrinter :: PGF -> CId -> String +bnfPrinter pgf cnc = prCFG $ pgfToCFG pgf cnc pgfToCFG :: PGF -> CId -- ^ Concrete syntax name -- cgit v1.2.3