Can't run any program in

Can't run any program in - Bearded sportsman running on urban stairs during training

Probably very dumb problem here. I am trying to run a basic program on my turtle, like a turtle.forward() then end. I then save and exit, but when I type the name of the program I want to run, I get this error:

bios.lua:14: [string "*nameofmyprogram*"]:2: '<eof>' expected

What am I doing wrong ?



Best Answer

From what I understand you're trying to call the following:

turtle.forward()
end

end isn't for function calls, only declarations. Remove the end and it should work.




Pictures about "Can't run any program in"

Can't run any program in - Side view of young male athlete wearing sports clothes and cap drinking water from plastic bottle on blurred background of forest during running and workout
Can't run any program in - Smiling woman drinking water during training in park
Can't run any program in - Positive stylish Asian couple running on old street of town





Can - Mother Sky (1970) [HQ]




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Mary Taylor, Gustavo Fring, Gustavo Fring, Trần Long