| 241 | |
| 242 | |
| 243 | void total_conflicts() |
| 244 | { |
| 245 | fprintf(stderr, "%s: ", myname); |
| 246 | if (SRtotal == 1) |
| 247 | fprintf(stderr, "1 shift/reduce conflict"); |
| 248 | else if (SRtotal > 1) |
| 249 | fprintf(stderr, "%d shift/reduce conflicts", SRtotal); |
| 250 | |
| 251 | if (SRtotal && RRtotal) |
| 252 | fprintf(stderr, ", "); |
| 253 | |
| 254 | if (RRtotal == 1) |
| 255 | fprintf(stderr, "1 reduce/reduce conflict"); |
| 256 | else if (RRtotal > 1) |
| 257 | fprintf(stderr, "%d reduce/reduce conflicts", RRtotal); |
| 258 | |
| 259 | fprintf(stderr, ".\n"); |
| 260 | } |
| 261 | |
| 262 | |
| 263 | int sole_reduction(int stateno) |