mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-13 22:33:03 +00:00
* src/conflicts.c (count_sr_conflicts, count_rr_conflicts): Return
the result instead of using... (src_total, rrc_total, src_count, rrc_count): Remove. (any_conflicts): Remove. (print_conflicts): Split into... (conflicts_print, conflicts_output): New. * src/conflicts.h: Adjust. * src/main.c (main): Invoke both conflicts_output and conflicts_print. * src/print.c (print_grammar): Issue `n' between to rule outputs. * tests/regression.at (Conflicts): New. Reported by Tom Lane.
This commit is contained in:
@@ -84,6 +84,7 @@ main (int argc, char *argv[])
|
||||
conflicts. Also resolve s/r conflicts based on precedence
|
||||
declarations. */
|
||||
solve_conflicts ();
|
||||
conflicts_print ();
|
||||
|
||||
/* Output file names. */
|
||||
compute_output_file_names ();
|
||||
@@ -93,7 +94,7 @@ main (int argc, char *argv[])
|
||||
if (complain_message_count)
|
||||
exit (1);
|
||||
|
||||
/* Print information about results, if requested. */
|
||||
/* Output the detailed report on the grammar. */
|
||||
print_results ();
|
||||
|
||||
/* Output the VCG graph. */
|
||||
|
||||
Reference in New Issue
Block a user