• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

READMEH A D20-Oct-20111.1 KiB2723

bisect.luaH A D03-May-2022645 2818

cf.luaH A D03-May-2022293 1713

echo.luaH A D03-May-202280 63

env.luaH A D03-May-2022181 83

factorial.luaH A D03-May-2022707 3322

fib.luaH A D03-May-2022605 4132

fibfor.luaH A D03-May-2022254 1410

globals.luaH A D03-May-2022418 149

hello.luaH A D03-May-202286 41

life.luaH A D03-May-20222.6 KiB11279

luac.luaH A D03-May-2022234 84

printf.luaH A D03-May-2022169 84

readonly.luaH A D03-May-2022260 138

sieve.luaH A D03-May-2022774 3022

sort.luaH A D03-May-20221.5 KiB6754

table.luaH A D03-May-2022283 139

trace-calls.luaH A D03-May-2022749 3326

trace-globals.luaH A D03-May-2022728 3930

xd.luaH A D03-May-2022364 1511

README

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