* doc/bison.texinfo: Don't promote stdout for error messages.

This commit is contained in:
Akim Demaille
2003-08-25 10:35:38 +00:00
parent 8c182d0592
commit 4e03e2015c
2 changed files with 13 additions and 9 deletions

View File

@@ -1,3 +1,7 @@
2003-08-25 Akim Demaille <akim@epita.fr>
* doc/bison.texinfo: Don't promote stdout for error messages.
2003-08-25 Akim Demaille <akim@epita.fr> 2003-08-25 Akim Demaille <akim@epita.fr>
* data/lalr1.cc (Parser::reduce_print_): Remove unused yyi. * data/lalr1.cc (Parser::reduce_print_): Remove unused yyi.

View File

@@ -1415,7 +1415,7 @@ here is the definition we will use:
void void
yyerror (char const *s) yyerror (char const *s)
@{ @{
printf ("%s\n", s); fprintf (stderr, "%s\n", s);
@} @}
@end group @end group
@end example @end example
@@ -3082,8 +3082,6 @@ Though grammar rules and semantic actions are enough to write a fully
functional parser, it can be useful to process some additional information, functional parser, it can be useful to process some additional information,
especially symbol locations. especially symbol locations.
@c (terminal or not) ?
The way locations are handled is defined by providing a data type, and The way locations are handled is defined by providing a data type, and
actions to take when rules are matched. actions to take when rules are matched.
@@ -3148,9 +3146,10 @@ exp: @dots{}
else else
@{ @{
$$ = 1; $$ = 1;
printf("Division by zero, l%d,c%d-l%d,c%d", fprintf (stderr,
@@3.first_line, @@3.first_column, "Division by zero, l%d,c%d-l%d,c%d",
@@3.last_line, @@3.last_column); @@3.first_line, @@3.first_column,
@@3.last_line, @@3.last_column);
@} @}
@} @}
@end group @end group
@@ -3174,9 +3173,10 @@ exp: @dots{}
else else
@{ @{
$$ = 1; $$ = 1;
printf("Division by zero, l%d,c%d-l%d,c%d", fprintf (stderr,
@@3.first_line, @@3.first_column, "Division by zero, l%d,c%d-l%d,c%d",
@@3.last_line, @@3.last_column); @@3.first_line, @@3.first_column,
@@3.last_line, @@3.last_column);
@} @}
@} @}
@end group @end group