>>> "Joel" == Joel E Denny <[EMAIL PROTECTED]> 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); }