0
votes

Okay, so I'm trying to learn Lua. I am getting this error:

'=' expected near '<eof>'

Using this line to run it.

dofile(”.\\test.lua”)

And my script is just print("Hello World!")

How do I run this?

1
Is your dofile(”.\\test.lua”) script really using typographic quotation marks? Or is that just an artifact of some mechanism you used to post here? I have a feeling Lua is only going to use standard dumb quotation marks: ". - sarnold
Nah, it's only using normal ones. - CyanPrime
What do you get if you type in Print("Hello World")? - Jane T
What is the output of f=assert(loadfile(".\\test.lua")) f() ? - PeterMmm
Try running luac -p test.lua and paste here what it says - Alexander Gladysh

1 Answers

2
votes

Guess I installed the wrong thing. I downloaded this and now everything works. Thank you all for your help. ^_^ http://code.google.com/p/luaforwindows/downloads/detail?name=LuaForWindows_v5.1.4-40.exe&can=2&q=