[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LPeg 0.11
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 2 Apr 2013 10:15:50 -0300
> Any results from ONE_STATEMENT are already recorded via side-effects,
> so any captures inside it have already been used, and I want to
> discard them for the "next iteration" (of ONE_STATEMENT).
Did you try the suggestion I sent (to erase all captures)?
> Trying this in real life leads to memory explosion, whereas just using
> an explicit loop outside of LPeg doesn't, so clearly something's
> being kept around inside LPeg between iterations.
It can be a problem with LPeg or it can be a problem with the pattern
itself. Are you using this new version?