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