Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
xd.lua | 2014-04-10 | 364 Bytes | |
trace-calls.lua | 2014-04-10 | 749 Bytes | |
trace-globals.lua | 2014-04-10 | 728 Bytes | |
table.lua | 2014-04-10 | 283 Bytes | |
sort.lua | 2014-04-10 | 1.5 kB | |
readonly.lua | 2014-04-10 | 260 Bytes | |
sieve.lua | 2014-04-10 | 774 Bytes | |
README | 2014-04-10 | 1.2 kB | |
printf.lua | 2014-04-10 | 169 Bytes | |
luac.lua | 2014-04-10 | 234 Bytes | |
life.lua | 2014-04-10 | 2.6 kB | |
hello.lua | 2014-04-10 | 86 Bytes | |
fibfor.lua | 2014-04-10 | 254 Bytes | |
globals.lua | 2014-04-10 | 418 Bytes | |
fib.lua | 2014-04-10 | 605 Bytes | |
factorial.lua | 2014-04-10 | 707 Bytes | |
echo.lua | 2014-04-10 | 80 Bytes | |
env.lua | 2014-04-10 | 181 Bytes | |
cf.lua | 2014-04-10 | 293 Bytes | |
bisect.lua | 2014-04-10 | 645 Bytes | |
Totals: 20 Items | 12.1 kB | 0 |
These are simple tests for Lua. Some of them contain useful code. They are meant to be run to make sure Lua is built correctly and also to be read, to see how Lua programs look. Here is a one-line summary of each program: bisect.lua bisection method for solving non-linear equations cf.lua temperature conversion table (celsius to farenheit) echo.lua echo command line arguments env.lua environment variables as automatic global variables factorial.lua factorial without recursion fib.lua fibonacci function with cache fibfor.lua fibonacci numbers with coroutines and generators globals.lua report global variable usage hello.lua the first program in every language life.lua Conway's Game of Life luac.lua bare-bones luac printf.lua an implementation of printf readonly.lua make global variables readonly sieve.lua the sieve of of Eratosthenes programmed with coroutines sort.lua two implementations of a sort function table.lua make table, grouping all data for the same item trace-calls.lua trace calls trace-globals.lua trace assigments to global variables xd.lua hex dump