Lua Programming

  1. Lua Language Fundamentals
    1. Basic Syntax and Structure
      1. Comments
        1. Single-Line Comments
          1. Multi-Line Comments
          2. Keywords and Reserved Words
            1. Identifiers and Naming Conventions
              1. Code Blocks and Chunks
                1. Statement Termination
                2. Variables and Scope
                  1. Global Variables
                    1. Declaration and Assignment
                      1. Default Global Scope
                      2. Local Variables
                        1. Local Declaration with `local`
                          1. Variable Lifetime and Visibility
                          2. Block Scope
                            1. Nested Blocks
                              1. Variable Shadowing
                            2. Data Types
                              1. Nil Type
                                1. Representation of Absence
                                  1. Default Variable Value
                                  2. Boolean Type
                                    1. True and False Values
                                      1. Truthiness and Falsiness Rules
                                      2. Number Type
                                        1. Integer Representation
                                          1. Floating-Point Representation
                                            1. Numeric Limits and Precision
                                            2. String Type
                                              1. String Literals and Quotes
                                                1. Escape Sequences
                                                  1. Multiline Strings
                                                  2. Function Type
                                                    1. Functions as First-Class Values
                                                      1. Anonymous Functions
                                                      2. Table Type
                                                        1. Table Creation and Structure
                                                          1. Mutability
                                                          2. Userdata Type
                                                            1. Purpose and C API Integration
                                                            2. Thread Type
                                                              1. Coroutine Objects
                                                            3. Operators
                                                              1. Arithmetic Operators
                                                                1. Addition
                                                                  1. Subtraction
                                                                    1. Multiplication
                                                                      1. Division
                                                                        1. Modulus
                                                                          1. Exponentiation
                                                                            1. Unary Minus
                                                                            2. Relational Operators
                                                                              1. Equality
                                                                                1. Inequality
                                                                                  1. Less Than
                                                                                    1. Greater Than
                                                                                      1. Less Than or Equal
                                                                                        1. Greater Than or Equal
                                                                                        2. Logical Operators
                                                                                          1. And Operator
                                                                                            1. Or Operator
                                                                                              1. Not Operator
                                                                                                1. Short-Circuit Evaluation
                                                                                                2. String Concatenation Operator
                                                                                                  1. Length Operator
                                                                                                    1. String Length
                                                                                                      1. Table Length
                                                                                                      2. Operator Precedence and Associativity
                                                                                                      3. Type Checking and Conversion
                                                                                                        1. The `type()` Function
                                                                                                          1. Automatic Type Coercion
                                                                                                            1. Explicit Type Conversion
                                                                                                              1. String Conversion
                                                                                                                1. Number Conversion