By simply allowing for the argument_list production to be empty rather
than the lower-level argument production to be empty.
;
argument_list:
- argument {
+ /* empty */ {
+ $$ = _argument_list_create (parser);
+ }
+| argument {
$$ = _argument_list_create (parser);
_argument_list_append ($$, $1);
}
;
argument:
- /* empty */ {
+ word {
$$ = _string_list_create (parser);
+ _string_list_append_item ($$, $1);
}
| argument word {
_string_list_append_item ($1, $2);