Re: LPEG > 0.10 regression: 'B' (pattern may not have fixed length)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPEG > 0.10 regression: 'B' (pattern may not have fixed length)
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2016年4月17日 11:59:19 -0300
> > local SOS = lpeg.P(function(s, i) return i == 1 end) -- start of string
>
> This is completely tangential to the topic at hand, but wouldn't this
> work just as well for SOS?
>
> local SOS = -lpeg.B(1)
Sure.
-- Roberto