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). */ |
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); |
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, |
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, |