Previous: Tuning the Parser, Up: Bison Options [Contents][Index]
Options controlling the output.
Pretend that %header was specified, i.e., write an extra output file
containing definitions for the token kind names defined in the grammar, as
well as a few other declarations. See Bison Declaration Summary.
Historical name for option --header before Bison 3.8.
This is the same as --header except -d does not accept a file argument since POSIX Yacc requires that -d can be bundled with other short options.
Pretend that %file-prefix was specified, i.e., specify prefix to use
for all Bison output file names. See Bison Declaration Summary.
Write an extra output file containing verbose description of the comma separated list of things among:
stateDescription of the grammar, conflicts (resolved and unresolved), and parser’s automaton.
itemsetImplies state and augments the description of the automaton with
the full set of items for each state, instead of its core only.
lookaheadImplies state and augments the description of the automaton with
each rule’s lookahead set.
solvedImplies state. Explain how conflicts were solved thanks to
precedence and associativity directives.
counterexamplescexLook for counterexamples for the conflicts. See Generation of Counterexamples. Counterexamples take time to compute. The option -rcex should be used by the developer when working on the grammar; it hardly makes sense to use it in a CI.
allEnable all the items.
noneDo not generate the report.
Specify the file for the verbose description.
Pretend that %verbose was specified, i.e., write an extra output
file containing verbose descriptions of the grammar and
parser. See Bison Declaration Summary.
Specify the file for the parser implementation file.
The names of the other output files are constructed from file as described under the -v and -d options.
Output a graphical representation of the parser’s automaton computed by
Bison, in Graphviz
DOT format.
file is optional. If omitted and the grammar file is
foo.y, the output file will be foo.gv.
Output an XML report of the parser’s automaton computed by Bison.
file is optional.
If omitted and the grammar file is foo.y, the output file will be
foo.xml.
Replace prefix old with new when writing file paths in output files.
Previous: Tuning the Parser, Up: Bison Options [Contents][Index]