71 |
|
|
72 |
for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) |
for (rhsp = rules[r].rhs; *rhsp >= 0; ++rhsp) |
73 |
if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens)) |
if (ISVAR (*rhsp) && !bitset_test (N0, *rhsp - ntokens)) |
74 |
return FALSE; |
return false; |
75 |
return TRUE; |
return true; |
76 |
} |
} |
77 |
|
|
78 |
|
|
353 |
} |
} |
354 |
|
|
355 |
{ |
{ |
356 |
bool b = FALSE; |
bool b = false; |
357 |
int i; |
int i; |
358 |
for (i = 0; i < ntokens; i++) |
for (i = 0; i < ntokens; i++) |
359 |
if (!bitset_test (V, i) && !bitset_test (V1, i)) |
if (!bitset_test (V, i) && !bitset_test (V1, i)) |
360 |
{ |
{ |
361 |
if (!b) |
if (!b) |
362 |
fprintf (out, "%s\n\n", _("Terminals which are not used")); |
fprintf (out, "%s\n\n", _("Terminals which are not used")); |
363 |
b = TRUE; |
b = true; |
364 |
fprintf (out, " %s\n", symbols[i]->tag); |
fprintf (out, " %s\n", symbols[i]->tag); |
365 |
} |
} |
366 |
if (b) |
if (b) |