From: Paul Eggert Date: Sat, 21 Dec 2002 12:49:33 +0000 (+0000) Subject: (Decl Summary): yytname's first element is not always "$end", as the X-Git-Tag: BISON-1_875~54 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/f67ad422a4c9c2823b38dc7731e7897b17d2fed8?ds=sidebyside (Decl Summary): yytname's first element is not always "$end", as the user might specify a different name for the end token. --- 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.