Lua Tutorial (i): Lua scripting language Introduction _lua

Source: Internet
Author: User
Tags lua

Lua is an extensible programming language that is designed to support common procedural programming and to have relevant data description facilities. Lua also provides good support for object-oriented programming, functional programming, and data-driven programming. It can be used as a powerful, lightweight scripting language for any program that is needed. Lua is provided in the form of a library written in clean C. (The so-called clean C, refers to the ANSI C and C + + a subset of the Communist pass)

As an extended language, Lua does not have the concept of a "main" program: it can only be embedded in a host program, which is called embedding program or host. A host program can execute a small section of LUA code by calling a function, read and write Lua variables, and inject the C function to make the LUA code call. These extended C functions can greatly extend the domain in which Lua can handle transactions, so that various languages can be customized, and they share a unified framework of syntactic formatting. The official release of LUA includes a simple hosting program called LUA, which uses the LUA library to provide a separate LUA interpreter.

Lua is a free software, and its licensing determines that there is generally no guarantee of its use. The implementation of what is described in this handbook can be found in the official website of Lua, www.lua.org,

Like many other reference manuals, this document is a bit boring in some places. For a discussion of Lua's design ideas, look at the technical papers available on the LUA Web site. For details on programming with Lua, you can read Roberto's book, Programming in Lua (Second Edition).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.