[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: adding match state to Lpeg
- From: Miles Bader <miles.bader@...>
- Date: Wed, 23 Jan 2008 16:54:02 +0900
"Fabio Mascarenhas" <email@example.com> writes:
> I also have a suggestion for Lpeg, an optional parameter to match, a Lua
> object that gets passed as the first argument in any function captures, if
> lpeg.match(expression, subject, idx, state)
Yes, that would be very nice.
It would make it possible, in many cases, to construct patterns once at
load time instead of needing to construct them in a location where the
appropriate closed-over information is visible.
"1971 pickup truck; will trade for guns"