1. I'm working on page 71 of the second edition. I would like to be able to type files in textEdit and run them in the Lua interpreter. How do I do that?

  2. Save the file and then call the Lua interpreter giving the filename. For example if you name it foo.lua:

     lua foo.lua
    

    That will run the code in the file. If you want to run the file and then open the interpreter afterwards so you can examine the data:

     lua -i foo.lua
    
  3. Many thanks for the quick response.