Fix minor troff and spelling glitches.

This commit is contained in:
Paul Eggert
2002-11-07 07:06:29 +00:00
parent 6e40b4ebd4
commit 4e0813a6cf

View File

@@ -76,7 +76,7 @@ Unlike
the generated files do not have fixed names, but instead use the prefix the generated files do not have fixed names, but instead use the prefix
of the input file. of the input file.
Moreover, if you need to put Moreover, if you need to put
.IR C++ .I C++
code in the input file, you can end his name by a C++-like extension code in the input file, you can end his name by a C++-like extension
(.ypp or .y++), then bison will follow your extension to name the (.ypp or .y++), then bison will follow your extension to name the
output file (.cpp or .c++). output file (.cpp or .c++).
@@ -86,10 +86,10 @@ would produce the generated parser in a file named
.BR parse.tab.cxx , .BR parse.tab.cxx ,
instead of instead of
.IR yacc 's .IR yacc 's
.BR y.tab.c .B y.tab.c
or old or old
.IR Bison .I Bison
versions version's
.BR parse.tab.c . .BR parse.tab.c .
.PP .PP
This description of the options that can be given to This description of the options that can be given to
@@ -122,7 +122,7 @@ Specify a prefix to use for all
.I bison .I bison
output file names. The names are output file names. The names are
chosen as if the input file were named chosen as if the input file were named
\fIfile-prefix\fB.c\fR. \fIfile-prefix\fP\fB.c\fP.
.TP .TP
.B \-d .B \-d
.br .br
@@ -135,10 +135,10 @@ as well as a few
variable declarations. variable declarations.
.sp .sp
If the parser output file is named If the parser output file is named
\fIname\fB.c\fR .IB name .c
then this file then this file
is named is named
\fIname\fB.h\fR. \fIname\fP\fB.h\fP.
.sp .sp
This output file is essential if you wish to put the definition of This output file is essential if you wish to put the definition of
.B yylex .B yylex
@@ -148,29 +148,29 @@ needs to be able to refer to token type codes and the variable
.BR yylval . .BR yylval .
.TP .TP
.BI \-\-defines= defines-file .BI \-\-defines= defines-file
The behaviour of The behavior of
.BI \-\-defines .B \-\-defines
is the same than is the same than
.BI \-d .B \-d
option. option.
The only difference is that it has an optionnal argument which is The only difference is that it has an optional argument which is
the name of the output filename. the name of the output filename.
.TP .TP
.BI \-g .BI \-g
.br .br
.ns .ns
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 .BI \-\-graph= graph-file
The behaviour of The behavior of
.BI \-\-graph .BI \-\-graph
is the same than is the same than
.BI \-g .BI \-g
option. The only difference is that it has an optionnal argument which option. The only difference is that it has an optional argument which
is the name of the output graph filename. is the name of the output graph filename.
.TP .TP
.B \-k .B \-k
@@ -178,8 +178,10 @@ is the name of the output graph filename.
.ns .ns
.TP .TP
.B \-\-token-table .B \-\-token-table
This switch causes the \fIname\fB.tab.c\fR output to include a list of This switch causes the
token names in order by their token numbers; this is defined in the array .IB name .tab.c
output to include a list of
token names in order by their token numbers; this is defined in the array
.IR yytname . .IR yytname .
Also generated Also generated
are #defines for are #defines for
@@ -209,9 +211,13 @@ parser file, treating it an independent source file in its own right.
.ns .ns
.TP .TP
.B \-\-no-parser .B \-\-no-parser
Do not generate the parser code into the output; generate only Do not generate the parser code into the output; generate only
declarations. The generated \fIname\fB.tab.c\fR file will have only declarations. The generated
constant declarations. In addition, a \fIname\fB.act\fR file is .IB name .tab.c
file will have only
constant declarations. In addition, a
.IB name .act
file is
generated containing a switch statement body containing all the generated containing a switch statement body containing all the
translated actions. translated actions.
.TP .TP