[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lpeg coroutine?
- From: eric koorn <eric.koorn@...>
- Date: Thu, 16 Apr 2015 15:33:42 +0200
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
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 <firstname.lastname@example.org> wrote:
> I found this, but it requires LuaJIT:
Ciao, Eric Koorn