lua-users home
lua-l archive

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


Sure it's a hack.  You could partition the file so that it doesn't
change the meaning of anything and run loadstring on the chunks.  I'm
not sure how you could figure out where to chop it though.

wes

On 8/16/07, Rob Kendrick <lua-l@nun.org.uk> wrote:
> Wesley Smith top-posted:
> > Could you write it to file and call luaL_dofile?
>
> This strikes me as an inelegant hack, if the data's coming over the network.
>
> Does the Lua API support incremental parsing, such that you can keep
> calling a function to pump more data in, and then signal the end?
>
> B.
>
>