]> git.saurik.com Git - bison.git/commit - src/gram.h
Attach actions to rules, instead of pre-outputting them to
authorAkim Demaille <akim@epita.fr>
Sat, 15 Dec 2001 14:14:30 +0000 (14:14 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 15 Dec 2001 14:14:30 +0000 (14:14 +0000)
commit3f96f4dc41e366349d61f8918d8d6e9406da933d
tree2745e4d917c965c56c344688eb9ca0fa35de25e6
parent51576fb3c661cec97bb58e503351e7ad75053f6d
Attach actions to rules, instead of pre-outputting them to
actions_obstack.
* src/gram.h (rule_t): action and action_line are new members.
* src/reader.c (symbol_list): Likewise.
(copy_action): Save the actions within the rule.
(packgram): Save them in rule_table.
* src/output.c (actions_output): New.
(output_parser): Use it on `%%actions'.
(output_rule_data): Don't free rule_table.
(output): Do it.
(prepare): Don't save the `action' muscle.
* src/bison.simple: s/%%action/%%actions/.
ChangeLog
src/bison.simple
src/gram.h
src/output.c
src/reader.c
src/symtab.h