teliva/test
Kartik K. Agaram 74f8cd15bb new fork of Lua 5.1
https://www.lua.org
2021-10-22 19:24:44 -07:00
..
README new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
bisect.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
cf.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
echo.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
env.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
factorial.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
fib.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
fibfor.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
globals.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
hello.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
life.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
luac.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
printf.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
readonly.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
sieve.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
sort.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
table.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
trace-calls.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
trace-globals.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00
xd.lua new fork of Lua 5.1 2021-10-22 19:24:44 -07:00

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