Re: [sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
On 18 Oct 2012, at 20:07, Richard Hipp wrote: > On Thu, Oct 18, 2012 at 3:03 PM, Ben wrote: > >> Hi list, >> >> I'm having a little trouble getting my head around memory management >> within a Lemon-generated parser. Specifically the part of the

Re: [sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Richard Hipp
On Thu, Oct 18, 2012 at 3:03 PM, Ben wrote: > Hi list, > > I'm having a little trouble getting my head around memory management > within a Lemon-generated parser. Specifically the part of the docs stating > when a destructor will or will not be called. > > For example,

[sqlite] Lemon: Non-terminal destructors and cleanup

2012-10-18 Thread Ben
Hi list, I'm having a little trouble getting my head around memory management within a Lemon-generated parser. Specifically the part of the docs stating when a destructor will or will not be called. For example, this is a portion of a grammar based on the SQLite parse.y file: columnName ::=