mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 10:43:02 +00:00
* doc/bison.1: Update.
* doc/bison.texinfo (Bison Options): Update --defines and --graph descriptions. (Option Cross Key): Update. Add --graph.
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
2001-09-18 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
|
* doc/bison.1: Update.
|
||||||
|
* doc/bison.texinfo (Bison Options): Update --defines and --graph
|
||||||
|
descriptions.
|
||||||
|
(Option Cross Key): Update.
|
||||||
|
Add --graph.
|
||||||
|
|
||||||
2001-09-18 Marc Autret <autret_m@epita.fr>
|
2001-09-18 Marc Autret <autret_m@epita.fr>
|
||||||
|
|
||||||
* tests/regression.at: New test (comment in %union).
|
* tests/regression.at: New test (comment in %union).
|
||||||
|
|||||||
25
doc/bison.1
25
doc/bison.1
@@ -10,11 +10,11 @@ bison \- GNU Project parser generator (yacc replacement)
|
|||||||
] [
|
] [
|
||||||
.B \-d
|
.B \-d
|
||||||
] [
|
] [
|
||||||
.B \-\-defines
|
.BI \-\-defines= defines-file
|
||||||
] [
|
] [
|
||||||
.B \-g
|
.B \-g
|
||||||
] [
|
] [
|
||||||
.B \-\-graph
|
.BI \-\-graph= graph-file
|
||||||
] [
|
] [
|
||||||
.B \-k
|
.B \-k
|
||||||
] [
|
] [
|
||||||
@@ -127,8 +127,6 @@ chosen as if the input file were named
|
|||||||
.B \-d
|
.B \-d
|
||||||
.br
|
.br
|
||||||
.ns
|
.ns
|
||||||
.TP
|
|
||||||
.B \-\-defines
|
|
||||||
Write an extra output file containing macro definitions for the token
|
Write an extra output file containing macro definitions for the token
|
||||||
type names defined in the grammar and the semantic value type
|
type names defined in the grammar and the semantic value type
|
||||||
.BR YYSTYPE ,
|
.BR YYSTYPE ,
|
||||||
@@ -149,17 +147,32 @@ in a separate source file, because
|
|||||||
needs to be able to refer to token type codes and the variable
|
needs to be able to refer to token type codes and the variable
|
||||||
.BR yylval .
|
.BR yylval .
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-\-defines= defines-file
|
||||||
|
The behaviour of
|
||||||
|
.BI \-\-defines
|
||||||
|
is the same than
|
||||||
|
.BI \-d
|
||||||
|
option.
|
||||||
|
The only difference is that it has an optionnal argument which is
|
||||||
|
the name of the output filename.
|
||||||
|
.TP
|
||||||
.BI \-g
|
.BI \-g
|
||||||
.br
|
.br
|
||||||
.ns
|
.ns
|
||||||
.TP
|
|
||||||
.BI \-\-graph
|
|
||||||
Output a VCG definition of the LALR(1) grammar automaton computed by
|
Output a VCG definition of the LALR(1) grammar automaton computed by
|
||||||
Bison. If the grammar file is
|
Bison. If the grammar file is
|
||||||
.BR foo.y
|
.BR foo.y
|
||||||
, the VCG output file will be
|
, the VCG output file will be
|
||||||
.BR foo.vcg .
|
.BR foo.vcg .
|
||||||
.TP
|
.TP
|
||||||
|
.BI \-\-graph= graph-file
|
||||||
|
The behaviour of
|
||||||
|
.BI \-\-graph
|
||||||
|
is the same than
|
||||||
|
.BI \-g
|
||||||
|
option. The only difference is that it has an optionnal argument which
|
||||||
|
is the name of the output graph filename.
|
||||||
|
.TP
|
||||||
.B \-k
|
.B \-k
|
||||||
.br
|
.br
|
||||||
.ns
|
.ns
|
||||||
|
|||||||
@@ -5085,12 +5085,16 @@ Adjust the output:
|
|||||||
|
|
||||||
@table @option
|
@table @option
|
||||||
@item -d
|
@item -d
|
||||||
@itemx --defines
|
|
||||||
Pretend that @code{%verbose} was specified, i.e., write an extra output
|
Pretend that @code{%verbose} was specified, i.e., write an extra output
|
||||||
file containing macro definitions for the token type names defined in
|
file containing macro definitions for the token type names defined in
|
||||||
the grammar and the semantic value type @code{YYSTYPE}, as well as a few
|
the grammar and the semantic value type @code{YYSTYPE}, as well as a few
|
||||||
@code{extern} variable declarations. @xref{Decl Summary}.
|
@code{extern} variable declarations. @xref{Decl Summary}.
|
||||||
|
|
||||||
|
@item --defines=@var{defines-file}
|
||||||
|
The behaviour of @var{--defines} is the same than @samp{-d}. The only
|
||||||
|
difference is that it has an optionnal argument which is the name of
|
||||||
|
the output filename.
|
||||||
|
|
||||||
@item -b @var{file-prefix}
|
@item -b @var{file-prefix}
|
||||||
@itemx --file-prefix=@var{prefix}
|
@itemx --file-prefix=@var{prefix}
|
||||||
Specify a prefix to use for all Bison output file names. The names are
|
Specify a prefix to use for all Bison output file names. The names are
|
||||||
@@ -5110,10 +5114,14 @@ The other output files' names are constructed from @var{outfile}
|
|||||||
as described under the @samp{-v} and @samp{-d} options.
|
as described under the @samp{-v} and @samp{-d} options.
|
||||||
|
|
||||||
@item -g
|
@item -g
|
||||||
@itemx --graph
|
|
||||||
Output a VCG definition of the LALR(1) grammar automaton computed by
|
Output a VCG definition of the LALR(1) grammar automaton computed by
|
||||||
Bison. If the grammar file is @file{foo.y}, the VCG output file will
|
Bison. If the grammar file is @file{foo.y}, the VCG output file will
|
||||||
be @file{foo.vcg}.
|
be @file{foo.vcg}.
|
||||||
|
|
||||||
|
@item --graph=@var{graph-file}
|
||||||
|
The behaviour of @var{--graph} is the same than @samp{-g}. The only
|
||||||
|
difference is that it has an optionnal argument which is the name of
|
||||||
|
the output graph filename.
|
||||||
@end table
|
@end table
|
||||||
|
|
||||||
@node Environment Variables
|
@node Environment Variables
|
||||||
@@ -5171,9 +5179,10 @@ the corresponding short option.
|
|||||||
@ifinfo
|
@ifinfo
|
||||||
@example
|
@example
|
||||||
--debug -t
|
--debug -t
|
||||||
--defines -d
|
--defines=@var{defines-file} -d
|
||||||
--file-prefix=@var{prefix} -b @var{file-prefix}
|
--file-prefix=@var{prefix} -b @var{file-prefix}
|
||||||
--fixed-output-files --yacc -y
|
--fixed-output-files --yacc -y
|
||||||
|
--graph=@var{graph-file} -d
|
||||||
--help -h
|
--help -h
|
||||||
--name-prefix=@var{prefix} -p @var{name-prefix}
|
--name-prefix=@var{prefix} -p @var{name-prefix}
|
||||||
--no-lines -l
|
--no-lines -l
|
||||||
|
|||||||
Reference in New Issue
Block a user