[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: warning: unused value: $3
From: |
henrik . sorensen |
Subject: |
Re: warning: unused value: $3 |
Date: |
Fri, 27 Oct 2006 07:25:52 +0200 |
User-agent: |
KMail/1.9.1 |
On Friday 27 October 2006 00:12, you wrote:
> On Thu, 26 Oct 2006 address@hidden wrote:
> > > in semantic actions at any level in the parse tree. Bison would have
> > > to check every possible expansion of every possible RHS symbol. That
> > > implementation seems like more work than I want to do.
> >
> > ... but how hard would it be to check just one level ?
>
> Not as hard surely, but not trivial. If warning about just the current
> rule is misleading, arbitrarily choosing to go only one level down seems
> just as confusing or more confusing in general.
true, good point,
... but this is what you can realistically check,
> Then again, I try to
> avoid mid-rules, $0, and $-n, so maybe I don't have the right feel for
> this.
maybe disable the check completely if $0 or $-n is used.
What is the impact of the unused $n ?
> I think we need input from other users to get a better feel for
> what's common.
I doubt there will be many uses of $0 beyond one level.
And also since bison are LALR(1) the restriction of checking by looking just
one level ahead is not that far off.
Henrik
- Re: warning: unused value: $3, (continued)
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/25
- Re: warning: unused value: $3, henrik . sorensen, 2006/10/26
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/26
- Re: warning: unused value: $3, henrik . sorensen, 2006/10/26
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/26
- Re: warning: unused value: $3, henrik . sorensen, 2006/10/26
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/26
- Re: warning: unused value: $3, henrik . sorensen, 2006/10/26
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/26
- Re: warning: unused value: $3,
henrik . sorensen <=
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/27
- Re: warning: unused value: $3, Hans Aberg, 2006/10/27
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/27
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/31
- Re: warning: unused value: $3, Hans Aberg, 2006/10/26
- Re: warning: unused value: $3, Joel E. Denny, 2006/10/26