Re: LPEG parsing 'external' strings or streams
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPEG parsing 'external' strings or streams
- From: Sam Roberts <sroberts@...>
- Date: 2007年4月16日 11:16:47 -0700
On Fri, Apr 13, 2007 at 10:17:44AM -0400, Thomas Harning Jr. wrote:
> Just wondering, how feasible would it be for LPEG to be able to parse
> external strings (ex: mem-mapped file) or generic streams.
[snip]
> LPEG works pretty fast, and allows for plenty of quick optimization...
> the only potential issue is that large data sets must be loaded into
> Lua as it stands now.
Besides large data sets, applying lpeg to streaming data, possibly using
coroutines, would be allow implementing text-based network protocols
with LuaSocket.
Sam