for Beginners
by
Gavin Wraith
Last updated on Thu,02 May , 2013
Click on the blue area to the left of the ringbinders to return to this page.
Contents
Chapter 1
introduction
why not Basic
what skills are prerequisite?
do I need to know any Basic?
typographic conventions
resources
setting up
running Lua
in immediate mode
from the desktop
using !Apply or StrongED
using Obey and TaskObey files
the lua virtual machine
Chapter 2
what are programs?
identifiers
comments
types
blocks
lexical scoping
example: A counter factory
Chapter 3
nil
booleans
numbers
strings
Chapter 4
functions
error handling
variable numbers of arguments
recursion
the paradoxical combinator
Chapter 5
structured objects
tables
table constructors
local variables from table keys
Chapter 6
iterators
sorting
coroutines
goto and labels
Chapter 7
modularization
text manipulation
databases
files
input
Chapter 8
metaprogramming
events
metatables
example: gaussian integers
lucas sequences
lazy tables
Chapter 9
patterns
captures
global substitution
MP3 Example
Chapter 10
arrays and indirection
software interrupts
no macros
Chapter 11
libraries
Chapter 12
lpeg library
combining lpeg patterns
creating lpeg patterns
captures