1*21d3294cSantirezThese are simple tests for Lua. Some of them contain useful code. 2*21d3294cSantirezThey are meant to be run to make sure Lua is built correctly and also 3*21d3294cSantirezto be read, to see how Lua programs look. 4*21d3294cSantirez 5*21d3294cSantirezHere is a one-line summary of each program: 6*21d3294cSantirez 7*21d3294cSantirez bisect.lua bisection method for solving non-linear equations 8*21d3294cSantirez cf.lua temperature conversion table (celsius to farenheit) 9*21d3294cSantirez echo.lua echo command line arguments 10*21d3294cSantirez env.lua environment variables as automatic global variables 11*21d3294cSantirez factorial.lua factorial without recursion 12*21d3294cSantirez fib.lua fibonacci function with cache 13*21d3294cSantirez fibfor.lua fibonacci numbers with coroutines and generators 14*21d3294cSantirez globals.lua report global variable usage 15*21d3294cSantirez hello.lua the first program in every language 16*21d3294cSantirez life.lua Conway's Game of Life 17*21d3294cSantirez luac.lua bare-bones luac 18*21d3294cSantirez printf.lua an implementation of printf 19*21d3294cSantirez readonly.lua make global variables readonly 20*21d3294cSantirez sieve.lua the sieve of of Eratosthenes programmed with coroutines 21*21d3294cSantirez sort.lua two implementations of a sort function 22*21d3294cSantirez table.lua make table, grouping all data for the same item 23*21d3294cSantirez trace-calls.lua trace calls 24*21d3294cSantirez trace-globals.lua trace assigments to global variables 25*21d3294cSantirez xd.lua hex dump 26*21d3294cSantirez 27