Re: LPeg grammars and metatables
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPeg grammars and metatables
- From: roberto@... (Roberto Ierusalimschy)
- Date: 2007年6月13日 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