Added --output-format=ebnf.

This commit is contained in:
bjorn
2008-09-26 09:20:39 +00:00
parent 8fa99886b3
commit 92c76a6265
5 changed files with 29 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ import GF.Speech.SRGS_ABNF
import GF.Speech.SRGS_XML
import GF.Speech.JSGF
import GF.Speech.GSL
import GF.Speech.SRG (ebnfPrinter)
import GF.Speech.VoiceXML
import GF.Speech.SLF
import GF.Speech.PrRegExp
@@ -37,6 +38,7 @@ exportPGF opts fmt pgf =
FmtProlog -> multi "pl" grammar2prolog
FmtProlog_Abs -> multi "pl" grammar2prolog_abs
FmtBNF -> single "bnf" bnfPrinter
FmtEBNF -> single "ebnf" ebnfPrinter
FmtNoLR -> single "bnf" nonLeftRecursivePrinter
FmtRegular -> single "bnf" regularPrinter
FmtFCFG -> single "fcfg" fcfgPrinter