1
0
forked from GitHub/gf-core

Added SLF, RegExp and Dot printing to exportPGF.

This commit is contained in:
bjorn
2008-06-22 12:01:29 +00:00
parent 0643efb659
commit 80108924f9

View File

@@ -13,6 +13,8 @@ import GF.Speech.SRGS_XML
import GF.Speech.JSGF
import GF.Speech.GSL
import GF.Speech.VoiceXML
import GF.Speech.SLF
import GF.Speech.PrRegExp
import GF.Text.UTF8
import Data.Maybe
@@ -35,6 +37,9 @@ exportPGF opts fmt pgf =
FmtJSGF -> single "jsgf" (jsgfPrinter sisr)
FmtGSL -> single "gsl" gslPrinter
FmtVoiceXML -> single "vxml" grammar2vxml
FmtSLF -> single ".slf" slfPrinter
FmtRegExp -> single ".rexp" regexpPrinter
FmtFA -> single ".dot" slfGraphvizPrinter
where
name = fromMaybe (prCId (absname pgf)) (moduleFlag optName opts)
sisr = flag optSISR opts