lua-users home
lua-l archive

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


I think I probably misread your request. The advice I just gave is for console reading.

You pass lua_load a callback which it calls until it either hits a syntax error or the callback returns an EOF indication. You have to do the reading in the callback. If you're doing anything complicated, you'll probably end up with some sort of state machine.