1 |
2002-04-07 Akim Demaille <akim@epita.fr> |
2002-04-07 Akim Demaille <akim@epita.fr> |
2 |
|
|
3 |
|
* src/gram.h, src/gram.c (rules_rhs_length): New. |
4 |
|
(ritem_longest_rhs): Use it. |
5 |
|
* src/gram.h (rule_t): `number' is a new member. |
6 |
|
* src/reader.c (packgram): Set it. |
7 |
|
* src/reduce.c (reduce_grammar_tables): Move the useless rules at |
8 |
|
the end of `rules', and count them out of `nrules'. |
9 |
|
(reduce_output, dump_grammar): Adjust. |
10 |
|
* src/print.c (print_grammar): It is no longer needed to check for |
11 |
|
the usefulness of a rule, as useless rules are beyond `nrules + 1'. |
12 |
|
* tests/reduce.at (Reduced Automaton): New test. |
13 |
|
|
14 |
|
2002-04-07 Akim Demaille <akim@epita.fr> |
15 |
|
|
16 |
* src/reduce.c (inaccessable_symbols): Fix a buglet: because of a |
* src/reduce.c (inaccessable_symbols): Fix a buglet: because of a |
17 |
lacking `+ 1' to nrules, Bison reported as useless a token if it |
lacking `+ 1' to nrules, Bison reported as useless a token if it |
18 |
was used solely to set the precedence of the last rule... |
was used solely to set the precedence of the last rule... |