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

lua-stdlib/lua-stdlib: General Lua libraries

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

开源软件名称(OpenSource Name):

lua-stdlib/lua-stdlib

开源软件地址(OpenSource Url):

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

开源编程语言(OpenSource Language):

Lua 98.7%

开源软件介绍(OpenSource Introduction):

Standard Lua libraries

Copyright (C) 2000-2018 stdlib authors

License travis-ci status codecov.io Stories in Ready

This is a collection of Lua libraries for Lua 5.1 (including LuaJIT), 5.2 and 5.3. The libraries are copyright by their authors (see the AUTHORS file for details), and released under the MIT license (the same license as Lua itself). There is no warranty.

stdlib has no run-time prerequisites beyond a standard Lua system, though it will take advantage of strict and typecheck if they are installed.

Installation

The simplest and best way to install stdlib is with LuaRocks. To install the latest release (recommended):

    luarocks install stdlib

To install current git master (for testing, before submitting a bug report for example):

    luarocks install http://raw.githubusercontent.com/lua-stdlib/lua-stdlib/master/stdlib-git-1.rockspec

The best way to install without LuaRocks is to copy the std folder and its contents into a directory on your package search path.

Documentation

The latest release of these libraries is documented in LDoc. Pre-built HTML files are included in the release.

Bug reports and code contributions

These libraries are written and maintained by their users.

Please make bug reports and suggestions as GitHub Issues. Pull requests are especially appreciated.

But first, please check that your issue has not already been reported by someone else, and that it is not already fixed by master in preparation for the next release (see Installation section above for how to temporarily install master with LuaRocks).

There is no strict coding style, but please bear in mind the following points when proposing changes:

  1. Follow existing code. There are a lot of useful patterns and avoided traps there.

  2. 3-character indentation using SPACES in Lua sources: It makes rogue TABS easier to see, and lines up nicely with 'if' and 'end' keywords.

  3. Simple strings are easiest to type using single-quote delimiters, saving double-quotes for where a string contains apostrophes.

  4. Save horizontal space by only using SPACES where the parser requires them.

  5. Use vertical space to separate out compound statements to help the coverage reports discover untested lines.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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