[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: too many warnings from Bison CVS for Pike
From: |
Akim Demaille |
Subject: |
Re: too many warnings from Bison CVS for Pike |
Date: |
Mon, 06 Feb 2006 09:46:34 +0100 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) |
>>> "Joel" == Joel E Denny <address@hidden> writes:
> For warnings of either level, there might be cases where the author is
> absolutely sure it's OK to ignore a value. Thus, there should be some
> construct to declare the value as used. We debated what that construct
> should be at length: YYUSE, YYBISON_USE, USE, YYUSE_VAL, YYUCK, $<>n
I think the problem should not be addressed in the action part, but
rather in the rule itself. I have long been wanting a means to name
the symbols, instead of numbering them. Something like
exp(res): exp(lhs) '+' exp(rhs) { $res = $lhs + $rhs; }
We should then look for a syntax that makes explicit what symbols are
unused, e.g.,
exp(): exp(lhs) '+' exp(rhs) { display ($lhs + $rhs); }