mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user