Path: Computer > Computer > Lua Related Stuff > Lua Short Reference
Lua Short Reference
Like many amateur bean-counters, I am a big fan of reference cards, especially for hard-to-remember technical obscurities, such as the finer points of Perl regular expressions or the blasted mod_rewrite syntax. I stumbled across the Lua 5.0 reference card by Enrico Colombini a couple of months ago and found it to be a very valuable tool. It was a little out-of-date, though, and so I thought I could do a quick update.
Enrico kindly agreed to supply his original files and notes, so thankfully I could build on sound foundations, with the hard work already done. I have tried to include all important changes for Lua 5.1, corrected some minor bugs and typos and changed the layout so that the whole thing now prints on four pages. It looks more cramped than does Enrico's version but then again, it's a reference card and not a literary work.
THIS IS AN EARLY DRAFT! There are certainly errors and omissions to be found in this draft. Please, everyone who uses this card — take the time and trouble to send a bug report if you happen on something that needs correcting. (BTW, the exclusion of deprecated language features (like table.setn()) is by design.)
Some acknowledgements: Enrico and I are grateful to all the good people who contributed with notes and suggestions, including John Belmonte, Albert-Jan Brouwer, Tiago Dionizio, Marius Gheorghe, Asko Kauppi, Philippe Lhoste, Mike Pall, Virgil Smith, Ando Sonenblick, Nick Trout, Clemens Wacha, Blake T. Garretson and of course Roberto Ierusalimschy, whose “Lua 5.1 Reference Manual” and “Programming in Lua” have been our main sources of Lua lore.
Update February 2008
- I have corrected a few minor glitches; these corrections are already in both versions (see links to the PDFs below).
- I have also prepared a second version with the same text, but only one “logical” page per physical page (the original version has two “logical” pages per physical page). The conversion was done in a quick-and-easy manner: I refrained from reformatting all tables, instead I just changed the layout and the orientation. This version prints on six pages as compared to the original four.
Update July 2009
- Some further glitches have been noticed and duly corrected. (I'd like to repeat that anyone who finds an error, however small, please get in touch.)
- There is now also a third zip available: this includes the files used to produce the two PDFs. These are MS Word DOC files; I've received unconfirmed reports that the files open in OpenOffice as well.
Downloads
Please direct all comments, bug reports et cetera to the lua-l mailing list or to thomas.lauer@gmail.com.
$updated from: Lua Short Reference.htxt Thu 27 Apr 2017 10:06:49 thomasl (By Thomas Lauer)$