lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, 29 Feb 2008 18:53:41 -0500
Thomas Harning <harningt@gmail.com> wrote:

> Does anybody have any suggestions on how to use LPeg 0.6 for TLV
> parsing, especially BER?
I've come up with something that mostly works using Lua Function-based
patterns, and have run into the issue of how can a Lua Function-based
pattern perform captures...

The hacky idea I came up w/ is to use something like:

  lpeg.C(function) / getFunctionCaptures

Any better ideas?