title logo
for Beginners

by

Gavin Wraith

Last updated on Mon,18 May , 2009

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
from StrongED
using Obey and TaskObey files
the lua virtual machine

Chapter 2

what are programs?
identifiers
comments
types
chunks
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

Chapter 7

modularization
text manipulation
databases
files

Chapter 8

metaprogramming
events
metatables
example: gaussian integers

Chapter 9

patterns
captures
global substitution
MP3 Example

Chapter 10

arrays and indirection
software interrupts

Chapter 11

libraries

Chapter 12

lpeg library
combining lpeg patterns
creating lpeg patterns
captures