lua-users home
lua-l archive

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


Juergen Fuhrmann wrote:
> Edgar Toernig <froese@gmx.de> wrote:
> > Luiz Henrique de Figueiredo wrote:
> > >
> > > In Lua 5.0, chunks are loaded via a single API function, lua_load, which
> > > receives a user function that handles blocks of bytes to Lua's core for
> > > parsing (or undumping).
> >
> > It would be nice if this function could be a Lua function.  Or even
> > better, a hook between lexer and parser...
>
> Possibly, this  just can  be realized by  lua_rawcall in  the handler.

Unfortunately not at the moment.  The parser relies on the fact that
the GC will not be invoked during compilation.

Ciao, ET.