diff options
| author | bjorn <bjorn@bringert.net> | 2008-06-03 19:32:42 +0000 |
|---|---|---|
| committer | bjorn <bjorn@bringert.net> | 2008-06-03 19:32:42 +0000 |
| commit | 7237438a94ae81a29b45b91a9929133afeb95831 (patch) | |
| tree | cb73fa3951563471c3ad0579569cf3251b5724b4 /src-3.0/GF/Compile | |
| parent | 2ee8ab8a714a1b2b4cf906583c04df1ee38b2cdc (diff) | |
Added "bnf" output format for debugging.
Diffstat (limited to 'src-3.0/GF/Compile')
| -rw-r--r-- | src-3.0/GF/Compile/Export.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src-3.0/GF/Compile/Export.hs b/src-3.0/GF/Compile/Export.hs index 81d9e3140..25f99ed55 100644 --- a/src-3.0/GF/Compile/Export.hs +++ b/src-3.0/GF/Compile/Export.hs @@ -7,6 +7,8 @@ import PGF.Raw.Convert (fromPGF) import GF.Compile.GFCCtoHaskell import GF.Compile.GFCCtoJS import GF.Infra.Option +import GF.Speech.CFG +import GF.Speech.PGFToCFG import GF.Speech.SRGS import GF.Text.UTF8 @@ -22,6 +24,7 @@ prPGF fmt gr name = case fmt of FmtJavaScript -> pgf2js gr FmtHaskell -> grammar2haskell gr name FmtHaskell_GADT -> grammar2haskellGADT gr name + FmtBNF -> prCFG $ pgfToCFG gr (outputConcr gr) FmtSRGS_XML -> srgsXmlPrinter Nothing gr (outputConcr gr) -- | Get the name of the concrete syntax to generate output from. |
