/[bison]/bison/src/output.c
ViewVC logotype

Diff of /bison/src/output.c

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

revision 1.212 by eggert, Thu Nov 21 05:20:05 2002 UTC revision 1.213 by eggert, Sat Dec 7 05:59:42 2002 UTC
# Line 229  prepare_rules (void) Line 229  prepare_rules (void)
229        /* Separator in RHS. */        /* Separator in RHS. */
230        rhs[i++] = -1;        rhs[i++] = -1;
231        /* Line where rule was defined. */        /* Line where rule was defined. */
232        rline[r] = rules[r].location.first_line;        rline[r] = rules[r].location.start.line;
233        /* Dynamic precedence (GLR).  */        /* Dynamic precedence (GLR).  */
234        dprec[r] = rules[r].dprec;        dprec[r] = rules[r].dprec;
235        /* Merger-function index (GLR).  */        /* Merger-function index (GLR).  */
# Line 295  user_actions_output (FILE *out) Line 295  user_actions_output (FILE *out)
295          fprintf (out, "  case %d:\n", r + 1);          fprintf (out, "  case %d:\n", r + 1);
296    
297          fprintf (out, "]b4_syncline([[%d]], ",          fprintf (out, "]b4_syncline([[%d]], ",
298                   rules[r].action_location.first_line);                   rules[r].action_location.start.line);
299          escaped_file_name_output (out, rules[r].action_location.file);          escaped_file_name_output (out, rules[r].action_location.start.file);
300          fprintf (out, ")[\n");          fprintf (out, ")[\n");
301          fprintf (out, "    %s\n    break;\n\n",          fprintf (out, "    %s\n    break;\n\n",
302                   rules[r].action);                   rules[r].action);
# Line 399  symbol_destructors_output (FILE *out) Line 399  symbol_destructors_output (FILE *out)
399             destructor, typename. */             destructor, typename. */
400          fprintf (out, "%s[",          fprintf (out, "%s[",
401                   first ? "" : ",\n");                   first ? "" : ",\n");
402          escaped_file_name_output (out, symbol->destructor_location.file);          escaped_file_name_output (out, symbol->destructor_location.start.file);
403          fprintf (out, ", [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]",          fprintf (out, ", [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]",
404                   symbol->destructor_location.first_line,                   symbol->destructor_location.start.line,
405                   symbol->tag,                   symbol->tag,
406                   symbol->number,                   symbol->number,
407                   symbol->destructor,                   symbol->destructor,
# Line 434  symbol_printers_output (FILE *out) Line 434  symbol_printers_output (FILE *out)
434             printer, typename. */             printer, typename. */
435          fprintf (out, "%s[",          fprintf (out, "%s[",
436                   first ? "" : ",\n");                   first ? "" : ",\n");
437          escaped_file_name_output (out, symbol->printer_location.file);          escaped_file_name_output (out, symbol->printer_location.start.file);
438          fprintf (out, ", [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]",          fprintf (out, ", [[%d]], [[%s]], [[%d]], [[%s]], [[%s]]]",
439                   symbol->printer_location.first_line,                   symbol->printer_location.start.line,
440                   symbol->tag,                   symbol->tag,
441                   symbol->number,                   symbol->number,
442                   symbol->printer,                   symbol->printer,

Legend:
Removed from v.1.212  
changed lines
  Added in v.1.213

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