Re: How to read thru a script file from C a line at a time.
[
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: Nick Gammon <nick@...>
- Date: 2006年10月18日 16:25:34 +1000
On 18/10/2006, at 6:39 AM, Edward Mitchell wrote:
Is there a way I can pass line by line of a script to Lua.
I don't think you can do this reliably. Take this example:
a = 2 + 2
+ 3
print (a)
The first line (a = 2 + 2) is a complete statement, which will
compile OK. However if you do that, then the "+ 3" line won't make
sense.
However the whole thing is semantically correct and should print 7.
- Nick