Jeff 64b60fced8 lua示例 il y a 5 ans
..
README 64b60fced8 lua示例 il y a 5 ans
bisect.lua 64b60fced8 lua示例 il y a 5 ans
cf.lua 64b60fced8 lua示例 il y a 5 ans
echo.lua 64b60fced8 lua示例 il y a 5 ans
env.lua 64b60fced8 lua示例 il y a 5 ans
factorial.lua 64b60fced8 lua示例 il y a 5 ans
fib.lua 64b60fced8 lua示例 il y a 5 ans
fibfor.lua 64b60fced8 lua示例 il y a 5 ans
globals.lua 64b60fced8 lua示例 il y a 5 ans
hello.lua 64b60fced8 lua示例 il y a 5 ans
life.lua 64b60fced8 lua示例 il y a 5 ans
luac.lua 64b60fced8 lua示例 il y a 5 ans
printf.lua 64b60fced8 lua示例 il y a 5 ans
readonly.lua 64b60fced8 lua示例 il y a 5 ans
sieve.lua 64b60fced8 lua示例 il y a 5 ans
sort.lua 64b60fced8 lua示例 il y a 5 ans
table.lua 64b60fced8 lua示例 il y a 5 ans
trace-calls.lua 64b60fced8 lua示例 il y a 5 ans
trace-globals.lua 64b60fced8 lua示例 il y a 5 ans
xd.lua 64b60fced8 lua示例 il y a 5 ans

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