lua-users home
lua-l archive

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


Realtime help its great! ;)

I founded an alternative solution using luaL_Buffer (http://bazar2.conectiva.com.br/mailman/private/lua/2007-July/027639.html ) and I will try it now.
If doesnt work I will try Richard's solution.

Thanks a lot!

Lucas Teixeira

On 8/16/07, Richard Simes < ricardo.nz@gmail.com> wrote:
you could use load():
http://www.lua.org/manual/5.1/manual.html#pdf-load

with a line iterator of your script as the argument



On 8/16/07, Lucas Teixeira < loteixeira@gmail.com> wrote:
> > Could you write it to file and call luaL_dofile?
>
> > wes
>
> Actually I tryed this and a unhandled exception is thrown by the
> application.
> And one more time I have no idea what is causing this :)
>
>  But if still not working I will try this solution.
>
> Lucas
>
>
> On 8/16/07, Lucas Teixeira < loteixeira@gmail.com > wrote:
> > The application loads the whole lua file. Then the application parses it.
> > Actually this test that I am doing is reading a file from my own computer,
> I just have a adaptor class that simulates a network transfer and load a
> local file.
> >
> > The problem isnt network transfering, the test is reading a file from my
> computer, opening it using fopen storing all the content on a const char*
> buffer and passing it to lua.
> >
> > Lucas
> >
> >
> >
> > On 8/16/07, Edwin Eyan Moragas <haaktu@gmail.com> wrote:
> > > 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?
> > > >
> > >
> > >
> > > parsing a lua lib file sounds like incremental parsing.
> > >
> > > why not send the source one file at a time then the calling code
> > > as the last?
> > >
> > > --
> > > no sig
> > >
> >
> >
>
>