This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
curin's profile picture

'<eof>' expected error

Started by curin, 19 May 2013 - 06:44 PM
curin #1
Posted 19 May 2013 - 08:44 PM
I'm having the '<eof>' expected error for line 34 of my code : http://pastebin.com/sNzX9rCu , but I can't find anything wrong with it. If anyone can help I would much appreciate it =)
 
Thank you very much in advance 
-Curin
Lyqyd #2
Posted 20 May 2013 - 12:37 AM
Split into new topic.
Grim Reaper #3
Posted 20 May 2013 - 12:45 AM
You spelled 'function' wrong on line 34 so the interpreter thinks that your entire program is closed by the 'end' which is supposed to close out your down() function.
theoriginalbit #4
Posted 20 May 2013 - 12:46 AM
on line 31 you misspelt function and as such when you have the end (that you actually put there for the function) Lua thinks that you're ending the program, but then finds more code, hence it erroring saying that it expected End of File (eof).
Notice how in that pastebin link function isn't a different colour…. Syntax highlighting is our friend ;)/>

EDIT: Damn ninja's :ph34r:/>
Edited on 19 May 2013 - 10:46 PM
curin #5
Posted 20 May 2013 - 06:09 AM
thanks I thought it was a derpy mistake I was just really tired and it was all looking correct to me