[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: Wed, 18 Oct 2006 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