return value of funcion used by lpeg.Cmt
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: return value of funcion used by lpeg.Cmt
- From: Matthias Kluwe <mkluwe@...>
- Date: 2010年2月18日 20:48:57 +0100
Hi!
The description of lpeg.Cmt on
http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html#matchtime describes
the behaviour when the called function returns a number, false, nil,
or no value. If I understand the example "Lua's long strings"
correctly, it can return true which does what I would expect: the
match is successful.
If this is correct, I'd suggest to add this clarification.
BTW: If I'd had to process a rather _large_ string, using lpeg.Cmt
would be the adequate tool, because the other options hold the
captures in memory until lpeg.match returns, right?
Regards,
Matthias