From 6f515a274e7f6533a8fa806f8506a159a0b1ebb7 Mon Sep 17 00:00:00 2001 From: Jesse Thilo Date: Wed, 25 Nov 1998 22:11:01 +0000 Subject: [PATCH] Clean up some formatting. --- doc/bison.texinfo | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/bison.texinfo b/doc/bison.texinfo index 3ee0ca57..f6bd5d63 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -3391,7 +3391,8 @@ for (i = 0; i < YYNTOKENS; i++) @{ if (yytname[i] != 0 && yytname[i][0] == '"' - && strncmp (yytname[i] + 1, token_buffer, strlen (token_buffer)) + && strncmp (yytname[i] + 1, token_buffer, + strlen (token_buffer)) && yytname[i][strlen (token_buffer) + 1] == '"' && yytname[i][strlen (token_buffer) + 2] == 0) break; @@ -3726,8 +3727,8 @@ struct @{ @}; @end example -Thus, to get the starting line number of the third component, use -@samp{@@3.first_line}. +Thus, to get the starting line number of the third component, you would +use @samp{@@3.first_line}. In order for the members of this structure to contain valid information, you must make @code{yylex} supply this information about each token. -- 2.47.2