代码搜索:Lua

找到约 9,588 项符合「Lua」的源代码

代码结果 9,588
www.eeworm.com/read/398754/7925819

lua sieve.lua

-- the sieve of of Eratosthenes programmed with coroutines -- typical usage: lua -e N=1000 sieve.lua | column -- generate all the numbers from 2 to n function gen (n) return coroutine.wrap(function
www.eeworm.com/read/398754/7925825

lua xd.lua

-- hex dump -- usage: lua xd.lua < file local offset=0 while true do local s=io.read(16) if s==nil then return end io.write(string.format("%08X ",offset)) string.gsub(s,"(.)", function (c) io.w
www.eeworm.com/read/398754/7925829

lua cf.lua

-- temperature conversion table (celsius to farenheit) for c0=-20,50-1,10 do io.write("C ") for c=c0,c0+10-1 do io.write(string.format("%3.0f ",c)) end io.write("\n") io.write("F ") for c=c
www.eeworm.com/read/398754/7925835

lua factorial.lua

-- function closures are powerful -- traditional fixed-point operator from functional programming Y = function (g) local a = function (f) return f(f) end return a(function (f)
www.eeworm.com/read/398754/7925840

lua hello.lua

-- the first program in every language io.write("Hello world, from ",_VERSION,"!\n")
www.eeworm.com/read/398754/7925846

lua sort.lua

-- two implementations of a sort function -- this is an example only. Lua has now a built-in function "sort" -- extracted from Programming Pearls, page 110 function qsort(x,l,u,f) if l
www.eeworm.com/read/297260/8034345

c lua.c

/* * $Id: lua.c,v 1.6 2006/05/30 04:37:12 darren Exp $ * * Copyright (c) 2000-2001, Max Ischenko . * * This source code is released for free distribution under the terms of the *
www.eeworm.com/read/247267/12669740

c lua.c

/* * $Id: lua.c,v 1.5 2002/03/01 03:47:29 darren Exp $ * * Copyright (c) 2000-2001, Max Ischenko . * * This source code is released for free distribution under the terms of the *
www.eeworm.com/read/331826/12804590

lua dynasm.lua

------------------------------------------------------------------------------ -- DynASM. A dynamic assembler for code generation engines. -- Originally designed and implemented for LuaJIT. -- -- Copy
www.eeworm.com/read/331826/12804596

lua strict.lua

-- -- strict.lua -- checks uses of undeclared global variables -- All global variables must be 'declared' through a regular assignment -- (even assigning nil will do) in a main chunk before being used