lua5_1_4_Examples
所属分类:编译器/解释器
开发工具:Visual C++
文件大小:11KB
下载次数:9
上传日期:2008-10-25 00:05:18
上 传 者:
swordzjj
说明: 这个是脚本引擎lua的例程,这是一个嵌入式的袖珍引擎
(This is a lua scripting engine of the routine, this is a pocket embedded engine)
文件列表:
lua5.1\test\bisect.lua (645, 2002-10-31)
lua5.1\test\cf.lua (293, 2002-08-07)
lua5.1\test\echo.lua (80, 2002-08-13)
lua5.1\test\env.lua (181, 2003-03-11)
lua5.1\test\factorial.lua (707, 2002-12-13)
lua5.1\test\fib.lua (605, 2002-11-22)
lua5.1\test\fibfor.lua (254, 2003-10-24)
lua5.1\test\globals.lua (418, 2002-08-07)
lua5.1\test\hello.lua (86, 2002-08-07)
lua5.1\test\life.lua (2635, 2002-08-28)
lua5.1\test\luac.lua (234, 2005-08-12)
lua5.1\test\printf.lua (169, 2004-12-23)
lua5.1\test\readonly.lua (260, 2003-03-12)
lua5.1\test\sieve.lua (774, 2002-10-31)
lua5.1\test\sort.lua (1494, 2002-08-07)
lua5.1\test\table.lua (283, 2004-02-05)
lua5.1\test\trace-calls.lua (749, 2005-08-12)
lua5.1\test\trace-globals.lua (728, 2003-03-12)
lua5.1\test\xd.lua (364, 2004-12-21)
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
近期下载者:
相关文件:
收藏者: