* src/output.c: Comment changes.

This commit is contained in:
Akim Demaille
2001-12-29 14:14:32 +00:00
parent 0d8a73638f
commit 255ef6389e
2 changed files with 52 additions and 50 deletions

View File

@@ -1,3 +1,7 @@
2001-12-29 Akim Demaille <akim@epita.fr>
* src/output.c: Comment changes.
2001-12-27 Paul Eggert <eggert@twinsun.com> 2001-12-27 Paul Eggert <eggert@twinsun.com>
* src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special * src/bison.simple (YYSTACK_ALLOC, YYSIZE_T): Remove special

View File

@@ -1,5 +1,6 @@
/* Output the generated parsing program for bison, /* Output the generated parsing program for bison,
Copyright 1984, 1986, 1989, 1992, 2000, 2001 Free Software Foundation, Inc. Copyright 1984, 1986, 1989, 1992, 2000, 2001
Free Software Foundation, Inc.
This file is part of Bison, the GNU Compiler Compiler. This file is part of Bison, the GNU Compiler Compiler.
@@ -19,76 +20,73 @@
02111-1307, USA. */ 02111-1307, USA. */
/* The parser tables consist of these tables. /* The parser tables consist of these tables. Marked ones needed only
Starred ones needed only for the semantic parser. for the semantic parser. Double marked are output only if switches
Double starred are output only if switches are set. are set.
yytranslate = vector mapping yylex's token numbers into bison's token YYTRANSLATE = vector mapping yylex's token numbers into bison's
numbers. token numbers.
** yytname = vector of string-names indexed by bison token number ++ YYTNAME = vector of string-names indexed by bison token number.
** yytoknum = vector of yylex token numbers corresponding to entries ++ YYTOKNUM = vector of yylex token numbers corresponding to
in yytname entries in YYTNAME.
yyrline = vector of line-numbers of all rules. For yydebug printouts. YYRLINE = vector of line-numbers of all rules. For yydebug
printouts.
yyrhs = vector of items of all rules. YYRHS = vector of items of all rules. This is exactly what RITEMS
This is exactly what ritems contains. For yydebug and for semantic contains. For yydebug and for semantic parser.
parser.
yyprhs[r] = index in yyrhs of first item for rule r. YYPRHS[R] = index in YYRHS of first item for rule R.
yyr1[r] = symbol number of symbol that rule r derives. YYR1[R] = symbol number of symbol that rule R derives.
yyr2[r] = number of symbols composing right hand side of rule r. YYR2[R] = number of symbols composing right hand side of rule R.
* yystos[s] = the symbol number of the symbol that leads to state s. + YYSTOS[S] = the symbol number of the symbol that leads to state
S.
yydefact[s] = default rule to reduce with in state s, YYDEFACT[S] = default rule to reduce with in state s, when YYTABLE
when yytable doesn't specify something else to do. doesn't specify something else to do. Zero means the default is an
Zero means the default is an error. error.
yydefgoto[i] = default state to go to after a reduction of a rule that YYDEFGOTO[I] = default state to go to after a reduction of a rule
generates variable ntokens + i, except when yytable that generates variable NTOKENS + I, except when YYTABLE specifies
specifies something else to do. something else to do.
yypact[s] = index in yytable of the portion describing state s. YYPACT[S] = index in YYTABLE of the portion describing state S.
The lookahead token's type is used to index that portion The lookahead token's type is used to index that portion to find
to find out what to do. out what to do.
If the value in yytable is positive, If the value in YYTABLE is positive, we shift the token and go to
we shift the token and go to that state. that state.
If the value is negative, it is minus a rule number to reduce by. If the value is negative, it is minus a rule number to reduce by.
If the value is zero, the default action from yydefact[s] is used. If the value is zero, the default action from YYDEFACT[S] is used.
yypgoto[i] = the index in yytable of the portion describing YYPGOTO[I] = the index in YYTABLE of the portion describing what to
what to do after reducing a rule that derives variable i + ntokens. do after reducing a rule that derives variable I + NTOKENS. This
This portion is indexed by the parser state number, s, portion is indexed by the parser state number, S, as of before the
as of before the text for this nonterminal was read. text for this nonterminal was read. The value from YYTABLE is the
The value from yytable is the state to go to if state to go to if the corresponding value in YYCHECK is S.
the corresponding value in yycheck is s.
yytable = a vector filled with portions for different uses, YYTABLE = a vector filled with portions for different uses, found
found via yypact and yypgoto. via YYPACT and YYPGOTO.
yycheck = a vector indexed in parallel with yytable. YYCHECK = a vector indexed in parallel with YYTABLE. It indicates,
It indicates, in a roundabout way, the bounds of the in a roundabout way, the bounds of the portion you are trying to
portion you are trying to examine. examine.
Suppose that the portion of yytable starts at index p Suppose that the portion of yytable starts at index P and the index
and the index to be examined within the portion is i. to be examined within the portion is I. Then if YYCHECK[P+I] != I,
Then if yycheck[p+i] != i, i is outside the bounds I is outside the bounds of what is actually allocated, and the
of what is actually allocated, and the default default (from YYDEFACT or YYDEFGOTO) should be used. Otherwise,
(from yydefact or yydefgoto) should be used. YYTABLE[P+I] should be used.
Otherwise, yytable[p+i] should be used.
YYFINAL = the state number of the termination state. YYFINAL = the state number of the termination state. YYFLAG = most
YYFLAG = most negative short int. Used to flag ?? negative short int. Used to flag ?? */
YYNTBASE = ntokens.
*/
#include "system.h" #include "system.h"
#include "quotearg.h" #include "quotearg.h"