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?

    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

    Many thanks for the quick response.