lua-users home
lua-l archive

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

This sounds like it: A yieldable version of LPeg.

Allows for the parsing of a dynamic buffer, usually fed by a socket.
This minimizes the need to preparse network protocols before passing
to lpeg.match.

The existing work is experimental and the interface and usage rules
are subject to change. The one notable limitation to be hopefully
lifted in the future is that the engine cannot discard data before
parsing and capturing completes. For network protocols this means your
grammar should probably have a terminal other than end-of-string.

Requires Lua 5.2.

On Thu, Apr 16, 2015 at 2:50 PM, Ignacio Burgueño <> wrote:
> I found this, but it requires LuaJIT:

Ciao, Eric Koorn