X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/8c9a50bee13474c1491df8f79f075f5214dda0d1..6b45a3ca826439d3e150033743107bc56511fa5c:/doc/bison.texinfo diff --git a/doc/bison.texinfo b/doc/bison.texinfo index eb722d38..029e2490 100644 --- a/doc/bison.texinfo +++ b/doc/bison.texinfo @@ -3289,10 +3289,10 @@ accurate parse error messages. Rename the external symbols used in the parser so that they start with @var{prefix} instead of @samp{yy}. The precise list of symbols renamed is @code{yyparse}, @code{yylex}, @code{yyerror}, @code{yynerrs}, -@code{yylval}, @code{yychar} and @code{yydebug}. For example, if you -use @samp{%name-prefix="c_"}, the names become @code{c_parse}, -@code{c_lex}, and so on. @xref{Multiple Parsers, ,Multiple Parsers in -the Same Program}. +@code{yylval}, @code{yychar}, @code{yydebug}, and possible +@code{yylloc}. For example, if you use @samp{%name-prefix="c_"}, the +names become @code{c_parse}, @code{c_lex}, and so on. @xref{Multiple +Parsers, ,Multiple Parsers in the Same Program}. @item %no-parser Do not include any C code in the parser file; generate tables only. The @@ -4950,13 +4950,13 @@ Summary}). We suggest that you always define @code{YYDEBUG} so that debugging is always possible. The trace facility outputs messages with macro calls of the form -@code{YYFPRINTF (YYSTDERR, @var{format}, @var{args})} where +@code{YYFPRINTF (stderr, @var{format}, @var{args})} where @var{format} and @var{args} are the usual @code{printf} format and arguments. If you define @code{YYDEBUG} to a nonzero value but do not define @code{YYFPRINTF}, @code{} is automatically included -and the macros are defined to @code{fprintf} and @code{stderr}. In -the same situation, C++ parsers include @code{} instead, and -use @code{std::fprintf} and @code{std::stderr}. +and @code{YYPRINTF} is defined to @code{fprintf}. In the same +situation, C++ parsers include @code{} and use +@code{std::fprintf} instead. Once you have compiled the program with trace facilities, the way to request a trace is to store a nonzero value in the variable @code{yydebug}.