[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- 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
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.
http://wilbur.25thandclement.com/~william/projects/lpegk.html
On Thu, Apr 16, 2015 at 2:50 PM, Ignacio Burgueño <iburgueno@gmail.com> wrote:
> I found this, but it requires LuaJIT:
> https://github.com/sacek/LPegLJ
>
--
Ciao, Eric Koorn