[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How to read thru a script file from C a line at a time.
- From: Rici Lake <lua@...>
- Date: Tue, 17 Oct 2006 20:47:02 -0500
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.