Akim Demaille
7da99edea7
%expext was not functioning at all.
...
* src/conflicts.c (expected_conflicts): Set to -1.
(conflict_report): Use ngettext.
(conflicts_print): Check %expect and make its violation an error.
* doc/bison.texinfo (Expect Decl): Adjust.
* configure.in (AM_GNU_GETTEXT): Ask for ngettext.
* tests/regression.at (%expect not enough, %expect right)
(%expect too much): New.
2001-11-12 09:33:38 +00:00
Akim Demaille
ba9dda1a2e
* tests/regression.at (Conflicts): Rename as...
...
(Unresolved SR Conflicts): this.
(Solved SR Conflicts): New.
2001-11-12 09:33:04 +00:00
Akim Demaille
c73a41af8e
* src/conflicts.c (print_reductions): Accept OUT as argument.
...
Output to it, not to output_obstack.
* src/print.c (print_actions): Adjust.
2001-11-12 09:32:35 +00:00
Akim Demaille
0df87bb609
* 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.
2001-11-12 09:31:40 +00:00
Akim Demaille
e4d3d4de4c
* tests/regression.at (Invalid input): Remove, duplicate with
...
``Invalid input: 1''.
2001-11-12 09:25:19 +00:00
Akim Demaille
e4d910bf0f
* tests/regression.at (AT_TEST_CPP_GUARD_H): Adjust the clean up
...
pattern.
2001-11-05 09:19:00 +00:00
Akim Demaille
cd5aafcf8c
* tests/regression.at (Mixing %token styles): New test.
2001-11-02 14:15:48 +00:00
Akim Demaille
270a173cf3
* tests/regression.at (AT_TEST_CPP_GUARD_H): New.
...
Check that `9foo.y' produces correct cpp guards.
* src/files.c (compute_header_macro): Prepend `BISON_' to CPP
guards.
Reported by Wwp.
2001-11-01 18:28:38 +00:00
Akim Demaille
561f9a30af
* tests/regression.at (Invalid input: 2): New.
...
* src/lex.c (unlexed_token_buffer): New.
(lex, unlex): Adjust: when unlexing, be sure to save token_buffer
too.
Reported by Wwp.
2001-11-01 18:05:22 +00:00
Akim Demaille
342b8b6e21
Merge in branch-1_29.
2001-10-04 14:55:21 +00:00
Akim Demaille
c95f2d781f
Add tests/regression.at and tests/suite.at.
2000-12-15 09:44:44 +00:00