antirez 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
..
README 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
bisect.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
cf.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
echo.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
env.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
factorial.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
fib.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
fibfor.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
globals.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
hello.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
life.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
luac.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
printf.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
readonly.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
sieve.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
sort.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
table.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
trace-calls.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
trace-globals.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây
xd.lua 21d3294c70 makefile adapted to link against lua lib and to pass the 32bit flag to Lua building system 13 năm trước cách đây

README

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