[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: LPegK, Yieldable LPeg
- From: William Ahern <william@...>
- Date: Thu, 2 Feb 2012 20:12:36 -0800
Here's a Git repo for a forked version of LPeg supporting yielding:
Stuff like discarding subject prefixes and progressive capture
internalization will just have to wait. I'd rather use it for my immediate
intentions--online sockets parsing--so I can get a feel for real-world
I definitely would like to supporting a sliding window input model, because
then users could do buffering in pure Lua using an array of strings. I hate
having to pass around memory addresses. (In my work branch I'll probably
require a fifo object, rather than bare addresses.) But such support would
be considerably more intrusive than the existing patch.
In the meantime I'll continue to shore up the existing model.