Re: default action in yydestruct

2006-07-12 Thread Joel E. Denny
On Wed, 12 Jul 2006, Frans Englich wrote: > Something that perhaps could be useful is if the debug output file contains > info on what token/types that no destructors exists for. That list could > first be printed if destructors are used at all, in order to not produce the > output in case dest

Re: default action in yydestruct

2006-07-12 Thread Frans Englich
On Wednesday 21 June 2006 20:20, Joel E. Denny wrote: > On Wed, 21 Jun 2006, Z Liu wrote: > > Is it possible to add a default action to yydestruct? > > Not yet, but we've just been discussing adding this as well as destructors > by semantic type. I make no promises, but I believe it'll be possible

Re: default action in yydestruct

2006-06-21 Thread Joel E. Denny
On Wed, 21 Jun 2006, Z Liu wrote: > Is it possible to add a default action to yydestruct? Not yet, but we've just been discussing adding this as well as destructors by semantic type. I make no promises, but I believe it'll be possible in Bison 2.4. Joel _

default action in yydestruct

2006-06-21 Thread Z Liu
Is it possible to add a default action to yydestruct? Two reasons: 1. For most of the tokens, the action is the same, e.g free the memory. Only for a few tokens one want to customize the behavior - that's where %destructor can be put to best use. 2. In a large grammar, forgetting to add a token to