• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

lua-nucleo/lua-nucleo: A random collection of core and utility level Lua librari ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

lua-nucleo/lua-nucleo

开源软件地址(OpenSource Url):

https://github.com/lua-nucleo/lua-nucleo

开源编程语言(OpenSource Language):

Lua 97.7%

开源软件介绍(OpenSource Introduction):

Lua-Núcleo – A random collection of core and utility level Lua libraries

See the copyright information in the file named COPYRIGHT.

Dependencies

Lua-Núcleo itself does not have external dependencies except for Lua (>= 5.1) itself.

The tests are dependent on luafilesystem and lua-aplicado:

sudo luarocks install luafilesystem
sudo luarocks install lua-aplicado

List of cases will not be updated without luafilesystem, but you should be able to run tests themselves. Low-level tests can't be executed without lua-aplicado.

Installation

If you're in a require-friendly environment, you may install lua-nucleo from luarocks (http://www.luarocks.org):

luarocks install lua-nucleo

Or, if you want to get the most current code, use rocks-cvs version:

luarocks install \
    lua-nucleo \
    --from=http://luarocks.org/repositories/rocks-cvs

Otherwise just copy lua-nucleo directory whereever is comfortable.

Initialization with require()

To use lua-nucleo in require-friendly environment, do as follows:

require 'lua-nucleo'

This assumes that lua-nucleo directory is somewhere in the package.path

Note that it will enable the strict mode (aka the Global Environment Protection)

If you definitely want to use lua-nucleo without strict mode, please use instead:

    require 'lua-nucleo.import'

For all other lua-nucleo files with and without strict mode, use import().

Note that if you want to keep using require(), you may replace in your code

local foo, bar = import 'lua-nucleo/baz/quo.lua' { 'foo', 'bar' }

with

local quo = require 'lua-nucleo.baz.quo'
local foo, bar = quo.foo, quo.bar

Initialization without require()

Set CODE_ROOT Lua variable to path to lua-nucleo directory.

dofile(CODE_ROOT..'lua-nucleo/strict.lua')
assert(loadfile(CODE_ROOT..'lua-nucleo/import.lua'))(CODE_ROOT)

After that use import().

Documentation

Autogenerated API docs: https://lua-nucleo.github.io/lua-nucleo/.

Also, read the source and tests for details.

TODO

See file named TODO.

Support

Post your questions to the Lua mailing list: http://www.lua.org/lua-l.html




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap