1 |
2001-12-15 Akim Demaille <akim@epita.fr> |
2001-12-15 Akim Demaille <akim@epita.fr> |
2 |
|
|
3 |
|
Attach actions to rules, instead of pre-outputting them to |
4 |
|
actions_obstack. |
5 |
|
|
6 |
|
* src/gram.h (rule_t): action and action_line are new members. |
7 |
|
* src/reader.c (symbol_list): Likewise. |
8 |
|
(copy_action): Save the actions within the rule. |
9 |
|
(packgram): Save them in rule_table. |
10 |
|
* src/output.c (actions_output): New. |
11 |
|
(output_parser): Use it on `%%actions'. |
12 |
|
(output_rule_data): Don't free rule_table. |
13 |
|
(output): Do it. |
14 |
|
(prepare): Don't save the `action' muscle. |
15 |
|
* src/bison.simple: s/%%action/%%actions/. |
16 |
|
|
17 |
|
2001-12-15 Akim Demaille <akim@epita.fr> |
18 |
|
|
19 |
* src/reader.c (copy_action): When --yacc, don't append a `;' |
* src/reader.c (copy_action): When --yacc, don't append a `;' |
20 |
to the user action: let it fail if lacking. |
to the user action: let it fail if lacking. |
21 |
Suggested by Aharon Robbins and Tom Tromey. |
Suggested by Aharon Robbins and Tom Tromey. |