List Info

Thread: warning: unused value: $3




warning: unused value: $3
user name
2006-10-26 19:14:08
On Thursday 26 October 2006 20:45, Joel E. Denny wrote:
> On Thu, 26 Oct 2006 henrik.sorensenbalcab.ch
wrote:
> > On Thursday 26 October 2006 02:27, Joel E. Denny
wrote:

> That's nice.  I'm wondering why the grammar doesn't use
$-1 and drop the
> mid-rule entirely, but I haven't test this.  I'm
thinking there may always
> be a solution similar to these to avoid USE for
mid-rules.
The grammar

procoptionlist:
  { $<pol>$ = newProcOptionList(); } 
          procoption 
  { $$ = $<pol>1; }
|       procoptionlist procoption {$$=$1;}
|       procoptionlist ',' {$$=$1;} procoption {$$=$1;}
        ;

procoption:
        MAIN {
if(setTristateAttribute(&($<pol>0)->main,1)<
0) YYERROR; }
;

so the procoption can be separated by either blanks or
comma.

I would be interested in knowing other solutions to this ...

Henrik


_______________________________________________
help-bisongnu.org http
://lists.gnu.org/mailman/listinfo/help-bison
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )