[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LPeg 0.12 (rc2)
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 26 Jun 2014 10:20:37 -0300
> On 12/04/2013 19:40, Roberto Ierusalimschy wrote:
> >What is new in version 0.12?
> > + no "unsigned short" limit for pattern sizes
> There is "unsigned short key;" in lptree.h, line 45.
> Is it related to the change described above?
No. The 'key' field does not store offsets or any data related to
pattern sizes. (Indeed, it is not even part of patterns, but of trees.)
This "unsigned short" limits only the number of Lua constants you can
have in your pattern (e.g., you cannot have more than 64K function
captures in a pattern).
> And if it is, do the sources at  really correspond to version 0.12?
I hope so.