lua-users home
lua-l archive

Re: NEWBIE Question: Windows Interpreter?

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


On Wed, Feb 27, 2008 at 8:49 PM, Rolf <rb@san.rr.com> wrote:

If I have my script in a file (e.g. test.txt) how would I execute it using the DOS interpreter?

That's the interpreter; you're one step away. Once you're in the prompt, you can call dofile("test.txt") to run the contents of your file. Or you can launch Lua and run your script at the same time, by giving the file name as an argument:

lua5.1.exe test.txt

Also, it's not really running under DOS, it's just a console window running in Windows. (Looks like DOS, but technically isn't!)

Is there any documentation for a newbie like me....?

Check http://www.lua.org/pil/ and http://www.lua.org/manual/5.1/

Good luck and enjoy Lua!

Evan

AltStyle によって変換されたページ (->オリジナル) /