mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 11:19:32 -06:00
Added --output-format=ebnf.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user