- Lua Quick Start Guide
- Gabor Szauer
- 206字
- 2021-08-05 10:30:31
What Lua is
Lua is a powerful, fast, lightweight, embeddable scripting language. The Lua virtual machine and interpreter are written in C. As a language, Lua is easy to learn. It contains 21 keywords, which makes the language rather small. Lua is also easy to read and understand, as its syntax makes it similar to English. For example, consider the following code snippet:
if not hero:IsAlive() then
GameOver();
end
This code is easy to read, and I bet you can take an intuitive guess at what it does. Lua is not only easy to read, it is also very powerful. The real power of Lua comes from its extensible nature. Programming constructs such as object-oriented programming (OOP) can be implemented in Lua, even though the language has no native support for objects.
At the time of writing, Lua has 14 versions; this book will focus on Lua 5.2.4. The latest version is 5.3; the main difference between 5.2 and 5.3 is that 5.3 contains support for explicit integers and bitwise operation.
- 現(xiàn)代C++編程:從入門到實踐
- The DevOps 2.3 Toolkit
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進階
- 深入淺出Prometheus:原理、應用、源碼與拓展詳解
- Python程序設計(第3版)
- Android Development with Kotlin
- Web全棧工程師的自我修養(yǎng)
- C語言程序設計
- MySQL數(shù)據(jù)庫管理與開發(fā)(慕課版)
- Python機器學習實戰(zhàn)
- Instant RubyMotion App Development
- Learning Data Mining with R
- 跟戴銘學iOS編程:理順核心知識點
- DB2SQL性能調(diào)優(yōu)秘笈
- 實驗編程:PsychoPy從入門到精通