Previous: Tuning the Parser, Up: Bison Options [Contents][Index]
Options controlling the output.
Pretend that %defines
was specified, i.e., write an extra output
file containing macro definitions for the token type names defined in
the grammar, as well as a few other declarations. See Decl Summary.
This is the same as --defines 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 Decl Summary.
Write an extra output file containing verbose description of the comma separated list of things among:
state
Description of the grammar, conflicts (resolved and unresolved), and parser’s automaton.
itemset
Implies state
and augments the description of the automaton with
the full set of items for each state, instead of its core only.
lookahead
Implies state
and augments the description of the automaton with
each rule’s lookahead set.
solved
Implies state
. Explain how conflicts were solved thanks to
precedence and associativity directives.
all
Enable all the items.
none
Do 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 Decl Summary.
Specify the file for the parser implementation file.
The other output files’ names 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 if the %required
version is 3.4 or better, foo.dot otherwise.
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.
Previous: Tuning the Parser, Up: Bison Options [Contents][Index]