Previously we had two copies of all top-level actions, (once in a list
context and once in a non-list context). Much simpler to instead have
a single list-context production with no action and then only have the
actions in their own non-list contexts.
input:
/* empty */
-| content
+| input content
;
content:
| NEWLINE {
printf ("\n");
}
-| content token {
- _print_resolved_token (parser, $2);
- talloc_free ($2);
- }
-| content directive_with_newline
-| content NEWLINE {
- printf ("\n");
- }
;
directive_with_newline: