mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 00:33:03 +00:00
* doc/bison.texinfo: Don't promote stdout for error messages.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user