1
0
forked from GitHub/gf-core

Use ebnf format for "regular" output-format.

This commit is contained in:
bjorn
2008-09-26 10:20:18 +00:00
parent 7a81b559fe
commit 2f3b7d1c55
3 changed files with 7 additions and 6 deletions

View File

@@ -4,7 +4,7 @@
--
-- Approximates PGF grammars with context-free grammars.
----------------------------------------------------------------------
module GF.Speech.PGFToCFG (bnfPrinter, regularPrinter,
module GF.Speech.PGFToCFG (bnfPrinter,
fcfgPrinter, pgfToCFG) where
import PGF.CId
@@ -26,9 +26,6 @@ import qualified Data.Set as Set
bnfPrinter :: PGF -> CId -> String
bnfPrinter = toBNF id
regularPrinter :: PGF -> CId -> String
regularPrinter = toBNF makeRegular
toBNF :: (CFG -> CFG) -> PGF -> CId -> String
toBNF f pgf cnc = prCFG $ f $ pgfToCFG pgf cnc