From f67ad422a4c9c2823b38dc7731e7897b17d2fed8 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 21 Dec 2002 12:49:33 +0000 Subject: [PATCH 1/1] (Decl Summary): yytname's first element is not always "$end", as the user might specify a different name for the end token. --- doc/bison.texinfo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 59f937ac..8d57aab7 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -3753,7 +3753,8 @@ Request a pure (reentrant) parser program (@pxref{Pure Decl, ,A Pure 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{"$end"}, +three elements of @code{yytname} correspond to the predefined tokens +@code{"$end"}, @code{"error"}, and @code{"$undefined"}; after these come the symbols defined in the grammar file. -- 2.45.2