On Mon, 2006-04-24 at 01:31 -0400, Joel E. Denny wrote: > On Sun, 23 Apr 2006, Steve Murphy wrote: > > > On Sun, 2006-04-23 at 10:02 -0600, Joel Denny wrote: ... > > > If the start symbol is going to be passed to yydestruct() come rain or > > shine (if so specified in a %destructor), it might be meaningful to know > > which it is... in other words, I haven't tried to understand the > > algorithm, but firstly, can an error result in the start symbol being > > tossed? > > Yes, after a valid sentence, there might be extra tokens. > > > If so, is there any way for yydestruct to determine whether the > > start symbol is being tossed for Cleanup reasons, or for Error reasons? > > (I think there could be situations where it might matter...). > > I know of no reliable way. Do you have an example where it's necessary to > do this?
Heavens, no! Just a theoretical question. It could be, tho, that sometime, somewhere, somehow, somebody's going to come up with one! After all, my name **is** Murphy, and I'm just being optimistic! ;^) > > Joel _______________________________________________ [email protected] http://lists.gnu.org/mailman/listinfo/help-bison
