lua-users home
lua-l archive

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




On Tuesday, December 3, 2013, Sean Conner wrote:


Hey Sean,

I'm replying to the post you did on using LPeg with partial data...

Couldn't you modify the LPeg grammar to something along the lines of:

records= record * record^0 * (partial + -1)

And then append partial to the next chunk?

I haven't tried to implement that, so it could be harder than it looks. 

-Andrew