2
0

README 1.1 KB

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