代码搜索:Lua

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

代码结果 9,588
www.eeworm.com/read/192080/5160189

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(fun
www.eeworm.com/read/192080/5160190

lua xd.lua

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

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 ")
www.eeworm.com/read/192080/5160192

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/192080/5160193

lua hello.lua

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

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/177353/5328329

c lua.c

/* Lua module */ #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "elinks.h" #include "main/module.h" #include "scripting/lua/core.h" #include "scripting/lua/hooks.h" struct module lua_sc
www.eeworm.com/read/177353/5328330

h lua.h

#ifndef EL__SCRIPTING_LUA_LUA_H #define EL__SCRIPTING_LUA_LUA_H struct module; extern struct module lua_scripting_module; #endif
www.eeworm.com/read/346269/3184949

lua afight.lua

aact = macro_GetActAttr(22) adef = macro_GetActAttr(8) dact = macro_GetDefAttr(22) ddef = macro_GetDefAttr(8) macro_SetAAct(aact) macro_SetADef(adef) macro_SetDAct(dact) macro_Set
www.eeworm.com/read/346269/3184951

lua dfight.lua

aact = macro_GetActAttr(22) adef = macro_GetActAttr(8) dact = macro_GetDefAttr(22) ddef = macro_GetDefAttr(8) macro_SetAAct(aact) macro_SetADef(adef) macro_SetDAct(dact) macro_Set