[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPeg grammars and metatables
- From: roberto@... (Roberto Ierusalimschy)
- Date: Wed, 13 Jun 2007 19:30:45 -0300
> Totally unrelated but to small for a new thread: Can I match the start of
> string in LPeg without lpeg.P(function(s, i) return i == 1 and i end)?
(Sorry to take so long to answer...)
The match function in Lpeg only mathes at the start of the string, so
usually you do not know any specific test to know whether you are there.
-- Roberto