* src/output.c (prepare_tokens): Go up to ntokens, not ntokens + 1.

* doc/bison.texinfo (Decl Summary): s/$illegal/$undefined./.
* tests/regression.at (Web2c Actions): Adjust.
This commit is contained in:
Akim Demaille
2002-07-26 06:24:11 +00:00
parent 4b3d3a8e46
commit 3650b4b8dd
4 changed files with 15 additions and 9 deletions

View File

@@ -3552,10 +3552,10 @@ Request a pure (reentrant) parser program (@pxref{Pure Decl, ,A Pure
@item %token-table
Generate an array of token names in the parser file. The name of the
array is @code{yytname}; @code{yytname[@var{i}]} is the name of the
token whose internal Bison token code number is @var{i}. The first three
elements of @code{yytname} are always @code{"$"}, @code{"error"}, and
@code{"$illegal"}; after these come the symbols defined in the grammar
file.
token whose internal Bison token code number is @var{i}. The first
three elements of @code{yytname} are always @code{"$"}, @code{"error"},
and @code{"$undefined."}; after these come the symbols defined in the
grammar file.
For single-character literal tokens and literal string tokens, the name
in the table includes the single-quote or double-quote characters: for