help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie: better approach for list processing with bison++?


From: Evan Lavelle
Subject: Re: newbie: better approach for list processing with bison++?
Date: Thu, 05 Jun 2014 10:30:44 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130801 Thunderbird/17.0.8

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]