forked from GitHub/gf-core
Use ebnf format for "regular" output-format.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user