mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-12 22:03:02 +00:00
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/.
This commit is contained in:
@@ -891,7 +891,7 @@ yyreduce:
|
||||
#endif
|
||||
switch (yyn)
|
||||
{
|
||||
%%action
|
||||
%%actions
|
||||
}
|
||||
#line %%line "%%skeleton"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user