Lua Programming in 8 Hours, For Beginners, Learn Coding Fast!
- Length: 127 pages
- Edition: 1
- Language: English
- Publisher: In Easy Step by Step
- Publication Date: 2021-01-05
- ISBN-10: B08S724XLJ
- Sales Rank: #184135 (See Top 100 Books)
This is a zero-risk investment. If you are not satisfied with this eBook, you can get back the full refund within 7 days.
About This Book
Absolutely for Beginners
“Lua Programming in 8 Hours” covers all essential Lua language knowledge. You can learn complete primary skills of Lua programming fast and easy. The book includes more than 60 practical examples for beginners and includes tests & answers for the college exam, the engineer certification exam, and the job interview exam.
Note:
This book is only for Lua beginners, it is not suitable for experienced Lua programmers.
Source Code for Download
This book provides source code for download; you can download the source code for better study, or copy the source code to your favorite editor to test the programs.
Table of Contents
Hour 1
What is Lua Language?
Install Lua
“Hello World” Script
Lua Comment
Identifier
Lua Reserved Keywords
Data Type
Check Data Type
Variable
Nil
Global & Local
Hour 2
String
Escape Character
String Length & Reverse
String Format
#string, find() & sub()
Connect & Repeat
Conversion & Replace
Character & ASII
Arithmetical Operators
Comparison Operators
Logical Operators
Hour 3
Precedence of Operators
While Loop
For Loop
For … In ipairs()
Repeat—Until()
Break Statement
Go To Statement
Nested Loop
If Statement
Hour 4
If-else Statement
Function
Function with Arguments
Return
Uncertain Parameters
Function Stored in Variable
Anonymous Function
How Many Parameters?
Array
Access Array Elements
Table
Iterate Over Table
Hour 5
Connect Table Elements
Insert Element
Remove & Sort
Table Length
Module
Garbage Collection
MetaTable
_ _index Method
_ _call Method
Hour 6
_ _newindex Method
_ _tostring Method
Other Meta_Methods
File I/O
Write a File
Read a File
Append a File
Read() Parameters
Process Multiple Files
Locate a String
Hour 7
Class
Object
Constructor
Inheritance
Overriding
Coroutine
Hour 8
coroutine.wrap()
Error
Error Processing (1)
Error Processing (2)
pcall()
xpcall()
Debug
Lua Questions & Answers
Questions
Answers