This is perhaps more canonical:
param_list
: /* nothing */ { $$ = new ParamListNode(); }
| param_item_list { $$ = $1; }
;
param_item_list
: param { $$ = new ParamListNode($1); }
| param_item_list ',' param { $$ = $1->addChild($3); }
;
so bare with me!
Think I'll pass on that. _______________________________________________ [email protected] https://lists.gnu.org/mailman/listinfo/help-bison
