mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-22 19:22:50 -06:00
updated documentation of pg -printer formats
This commit is contained in:
@@ -548,11 +548,12 @@ allCommands env@(pgf, mos) = Map.fromList [
|
|||||||
"N.B.2 Another way to produce different formats is to use 'gf -make',",
|
"N.B.2 Another way to produce different formats is to use 'gf -make',",
|
||||||
"the batch compiler. The following values are available both for",
|
"the batch compiler. The following values are available both for",
|
||||||
"the batch compiler (flag -output-format) and the print_grammar",
|
"the batch compiler (flag -output-format) and the print_grammar",
|
||||||
"command (flag -printer) ; * = not supported at the moment:",
|
"command (flag -printer):",
|
||||||
""
|
""
|
||||||
] ++ unlines [
|
] ++ unlines (sort [
|
||||||
" " ++ opt ++ "\t\t" ++ expl | ((opt,_),expl) <- outputFormatsExpl
|
" " ++ opt ++ "\t\t" ++ expl |
|
||||||
],
|
((opt,_),expl) <- outputFormatsExpl, take 1 expl /= "*"
|
||||||
|
]),
|
||||||
exec = \opts _ -> prGrammar opts,
|
exec = \opts _ -> prGrammar opts,
|
||||||
flags = [
|
flags = [
|
||||||
--"cat",
|
--"cat",
|
||||||
|
|||||||
@@ -451,16 +451,16 @@ outputFormatsExpl =
|
|||||||
(("ebnf", FmtEBNF),"Extended BNF"),
|
(("ebnf", FmtEBNF),"Extended BNF"),
|
||||||
(("regular", FmtRegular),"* regular grammar"),
|
(("regular", FmtRegular),"* regular grammar"),
|
||||||
(("nolr", FmtNoLR),"* context-free with no left recursion"),
|
(("nolr", FmtNoLR),"* context-free with no left recursion"),
|
||||||
(("srgs_xml", FmtSRGS_XML),"* SRGS XML speech recognition format"),
|
(("srgs_xml", FmtSRGS_XML),"SRGS speech recognition format in XML"),
|
||||||
(("srgs_xml_nonrec", FmtSRGS_XML_NonRec),"* SRGS XML, recursion eliminated"),
|
(("srgs_xml_nonrec", FmtSRGS_XML_NonRec),"SRGS XML, recursion eliminated"),
|
||||||
(("srgs_abnf", FmtSRGS_ABNF),"* ABNF speech recognition format"),
|
(("srgs_abnf", FmtSRGS_ABNF),"SRGS speech recognition format in ABNF"),
|
||||||
(("srgs_abnf_nonrec", FmtSRGS_ABNF_NonRec),"* ABNF, recursion eliminated"),
|
(("srgs_abnf_nonrec", FmtSRGS_ABNF_NonRec),"SRGS ABNF, recursion eliminated"),
|
||||||
(("jsgf", FmtJSGF),"* JSGF speech recognition format"),
|
(("jsgf", FmtJSGF),"JSGF speech recognition format"),
|
||||||
(("gsl", FmtGSL),"Nuance speech recognition format"),
|
(("gsl", FmtGSL),"Nuance speech recognition format"),
|
||||||
(("vxml", FmtVoiceXML),"Voice XML based on abstract syntax"),
|
(("vxml", FmtVoiceXML),"Voice XML based on abstract syntax"),
|
||||||
(("slf", FmtSLF),"* SLF speech recognition format"),
|
(("slf", FmtSLF),"SLF speech recognition format"),
|
||||||
(("regexp", FmtRegExp),"* regular expression"),
|
(("regexp", FmtRegExp),"regular expression"),
|
||||||
(("fa", FmtFA),"* finite automaton in graphviz format")
|
(("fa", FmtFA),"finite automaton in graphviz format")
|
||||||
]
|
]
|
||||||
|
|
||||||
instance Show OutputFormat where
|
instance Show OutputFormat where
|
||||||
|
|||||||
Reference in New Issue
Block a user