/[bison]/bison/doc/bison.texinfo
ViewVC logotype

Diff of /bison/doc/bison.texinfo

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.110 by eggert, Fri Jun 20 22:52:12 2003 UTC revision 1.111 by akim, Mon Aug 25 10:35:38 2003 UTC
# Line 1415  here is the definition we will use: Line 1415  here is the definition we will use:
1415  void  void
1416  yyerror (char const *s)  yyerror (char const *s)
1417  @{  @{
1418    printf ("%s\n", s);    fprintf (stderr, "%s\n", s);
1419  @}  @}
1420  @end group  @end group
1421  @end example  @end example
# Line 3082  Though grammar rules and semantic action Line 3082  Though grammar rules and semantic action
3082  functional parser, it can be useful to process some additional information,  functional parser, it can be useful to process some additional information,
3083  especially symbol locations.  especially symbol locations.
3084    
 @c (terminal or not) ?  
   
3085  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
3086  actions to take when rules are matched.  actions to take when rules are matched.
3087    
# Line 3148  exp:    @dots{} Line 3146  exp:    @dots{}
3146                else                else
3147                  @{                  @{
3148                    $$ = 1;                    $$ = 1;
3149                    printf("Division by zero, l%d,c%d-l%d,c%d",                    fprintf (stderr,
3150                           @@3.first_line, @@3.first_column,                             "Division by zero, l%d,c%d-l%d,c%d",
3151                           @@3.last_line, @@3.last_column);                             @@3.first_line, @@3.first_column,
3152                               @@3.last_line, @@3.last_column);
3153                  @}                  @}
3154              @}              @}
3155  @end group  @end group
# Line 3174  exp:    @dots{} Line 3173  exp:    @dots{}
3173                else                else
3174                  @{                  @{
3175                    $$ = 1;                    $$ = 1;
3176                    printf("Division by zero, l%d,c%d-l%d,c%d",                    fprintf (stderr,
3177                           @@3.first_line, @@3.first_column,                             "Division by zero, l%d,c%d-l%d,c%d",
3178                           @@3.last_line, @@3.last_column);                             @@3.first_line, @@3.first_column,
3179                               @@3.last_line, @@3.last_column);
3180                  @}                  @}
3181              @}              @}
3182  @end group  @end group

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26