4
I downloaded the Lua language interpreter, created a file hello.lua
with the code below:
print("Hello World")
But I can’t compile this code and display the output. I downloaded version 5.3.3 and ran the file lua.exe
, the console is displayed and typed: lua hello.lua
, but the error below is presented:
Detail, the execution of direct code on the console works, ie if I type print("hello world") the return is hello world
. But what I want is to run through a file.
It worked with dofile. But I tried outside the interpreter and could not. What is the correct installer for the command to be recognized?
– rodrigorf
There is no correct installer, if you have everything there it is to work, but that is another problem. See: https://www.lua.org/download.html
– Maniero