Re: LPeg for TLV (BER,DER,CER)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPeg for TLV (BER,DER,CER)
- From: Thomas Harning <harningt@...>
- Date: Mon, 3 Mar 2008 11:04:20 -0500
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?