Lines 1-18
Link Here
|
1 |
Lua is a programming language originally designed for extending applications, |
1 |
Lua is a programming language originally designed for extending |
2 |
but also frequently used as a general-purpose, stand-alone language. Lua |
2 |
applications, but also frequently used as a general-purpose, stand-alone |
3 |
combines simple procedural syntax (similar to Pascal) with powerful data |
3 |
language. Lua combines simple procedural syntax (similar to Pascal) with |
4 |
description constructs based on associative arrays and extensible semantics. |
4 |
powerful data description constructs based on associative arrays and |
5 |
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory |
5 |
extensible semantics. Lua is dynamically typed, interpreted from bytecodes, |
6 |
management with garbage collection, making it ideal for configuration, |
6 |
and has automatic memory management with garbage collection, making it ideal |
7 |
scripting, and rapid prototyping. |
7 |
for configuration, scripting, and rapid prototyping. |
8 |
|
8 |
|
9 |
A fundamental concept in the design of Lua is to provide meta-mechanisms for |
9 |
A fundamental concept in the design of Lua is to provide meta-mechanisms for |
10 |
implementing features, instead of providing a host of features directly in |
10 |
implementing features, instead of providing a host of features directly in |
11 |
the language. For example, although Lua is not a pure object-oriented |
11 |
the language. For example, although Lua is not a pure object-oriented |
12 |
language, it does provide meta-mechanisms for implementing classes and |
12 |
language, it does provide meta-mechanisms for implementing classes and |
13 |
inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the |
13 |
inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the |
14 |
language small, while allowing the semantics to be extended in unconventional |
14 |
language small, while allowing the semantics to be extended in |
15 |
ways. Extensible semantics is a distinguishing feature of Lua. |
15 |
unconventional ways. Extensible semantics is a distinguishing feature of |
|
|
16 |
Lua. |
16 |
|
17 |
|
17 |
Lua is implemented as a small library of C functions, written in ANSI C, and |
18 |
Lua is implemented as a small library of C functions, written in ANSI C, and |
18 |
compiles unmodified in all known platforms. The implementation goals are |
19 |
compiles unmodified in all known platforms. The implementation goals are |
19 |
- |
|
|