サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
ノーベル賞
lua-users.org
"split" [1] and "join"[2] are two common string operators that are essentially inverse operations of each other. Split separates a string containing a delimiter into the list of substrings between that delimiter. Join combines a list of strings into a new string by inserting a delimiter between each string. There are various ways to design and implement these functions in Lua, as described below.
Introduction Before applying these Lua style guidelines, consider the words of warning taken from the [Python style guide], which applies just as well to Lua. Code is read much more often than it is written, and this style guide intends to improve the readability of code through consistency. Consistency is important, in increasing measure, with other projects, within a project, and within a single
Lua can be embedded and extended[1] with code or applications written in other languages. Code and values in another language can be exposed to Lua and vice-versa. The following lists low and high level solutions for binding between Lua and other languages. Lua C API The most direct method to bind to Lua is with the Lua C API. The C API consists of two parts: the basic API (lua.h) provides the pri
This is an attempt to answer the LuaFaq : Can I use unicode strings? or Does Lua support unicode? In short, yes and no. Lua is unicode-agnostic and lua-strings are counted, so whenever you can treat unicode strings as simple byte sequences, you are done. Whenever that does not suffice, there are extension modules supplying your needs. You just have to figure out what exactly you mean by "support u
Unit testing is about testing your code during development, not in production. Typically you start by preparing the testing environment, writing some code that calls production code and check expected results with actual results. Lua has several frameworks to do that: [lunit] Fork with Lua 5.2 support: [lunitx] [Lunity] (similar to lunit, but can only run a single file and doesn't distinguish betw
Introduction About the tutorial This tutorial is aimed at all newcomers to the language Lua. We start off with where to find relevant introductory material and then progress to using the language with tutorials in the TutorialDirectory. The style is directed at newcomers to scripting languages, as well as newcomers to Lua. Common uses of Lua are: A configuration language for applications. A standa
This is a collection of links related to OOP (object-oriented programming[1]) in Lua. Learning Material ObjectOrientationTutorial - tutorial on OOP with classes. InheritanceTutorial - tutorial on OOP using inheritance[2] with classes and prototypes. [Chapter on OOP] from [PiL] - a comprehensive view of OOP in Lua by the language's chief-architect. ObjectOrientationClosureApproach - alternative app
This page is a top level directory of all Lua content at this wiki, grouped by topic. Introduction to Lua LearningLua - introduction to Lua (a guided directory) LuaTutorial - an informative tutorial written and reviewed by Lua users SampleCode - snippets of useful Lua code LuaComparison - how Lua compares with other languages. LuaFaq - unofficial, community-maintained frequently asked questions Lu
The following is some sample code for handling XML. It is divided into four sections: toolkits; XML parsers which are Lua only; XML parsers which contain C code and a binding; modules for handling XML-based protocols such as XML-RPC and SOAP. Credit to the authors is mentioned where appropriate. Toolkits LazyKit is a collection of XML processing tools. Its primary purpose is to provoke discussion
Lua-SDL2 Description A Lua binary module, for accessing SDL from Lua scripts. SDL stands for "Simple DirectMedia? Layer", and is a comprehensive, open-source, cross-platform multimedia API that can be used to produce professional-quality games. [1] [2] Installation luarocks install lua-sdl2 Make sure the libsdl development packages for SDL 2 are installed in your machine. RecentChanges · preferenc
You can find more about this page in LuaTutorial. It is suggested you read the topics from top to bottom, as they increase in complexity, except when one topic depends on another. TutorialExamples explains how the examples have been created and you can follow them. The tutorial is written for the previous version of Lua, version 5.2, and the previous version, 5.1. It still is largely relevant. The
Welcome to the lua-users wiki, a large community-maintained collection of Lua programming language information and resources. These pages supplement the [official Lua web site]. Here you can author your own pages, share code/ideas/links, and collaborate with other users. LuaDirectory - top level directory of all Lua content Featured Pages: LuaAddons - a directory of third-party libraries, distribu
lua-users.org is an internet site for and by users of the programming language Lua. To find out what Lua is and for documentation, downloads, mailing list info, etc. please visit the official Lua web site. The lua-users.org web is not affiliated with Tecgraf. Currently available resources: lua-users wiki - collaborative web site lua-l archive - searchable web archive of the official Lua mailing li
このページを最初にブックマークしてみませんか?
『lua-users.org』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く