lua-users home
lua-l archive

Re: LPeg for TLV (BER,DER,CER)

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


On 2008年2月29日 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?

AltStyle によって変換されたページ (->オリジナル) /