Lua Programming

  1. Standard Library Overview
    1. String Library
      1. String Length and Substring
        1. Len Function
          1. Sub Function
          2. String Searching
            1. Find Function
              1. Match Function
                1. Gmatch Function
                2. String Replacement
                  1. Gsub Function
                    1. Pattern-Based Replacement
                    2. String Formatting
                      1. Format Function
                        1. Format Specifiers
                        2. String Repetition and Case
                          1. Rep Function
                            1. Upper and Lower Functions
                            2. Pattern Matching
                              1. Pattern Syntax
                                1. Character Classes
                                  1. Captures and Groups
                                2. Math Library
                                  1. Basic Mathematical Functions
                                    1. Absolute Value
                                      1. Maximum and Minimum
                                        1. Floor and Ceiling
                                        2. Trigonometric Functions
                                          1. Sine, Cosine, Tangent
                                            1. Inverse Functions
                                              1. Angle Conversion
                                              2. Logarithmic and Exponential Functions
                                                1. Natural Logarithm
                                                  1. Exponential Function
                                                    1. Power Function
                                                    2. Random Number Generation
                                                      1. Random Function
                                                        1. Random Seed
                                                          1. Random Ranges
                                                          2. Mathematical Constants
                                                            1. Pi Constant
                                                              1. Huge Value
                                                            2. Input/Output Library
                                                              1. Standard Input/Output
                                                                1. Read Function
                                                                  1. Write Function
                                                                    1. Output Formatting
                                                                    2. File Operations
                                                                      1. File Opening and Closing
                                                                        1. File Modes
                                                                          1. File Handle Methods
                                                                          2. File Reading and Writing
                                                                            1. Line-Based Reading
                                                                              1. Character-Based Reading
                                                                                1. Binary File Handling
                                                                                2. File System Navigation
                                                                                  1. Current Directory
                                                                                    1. File Positioning
                                                                                  2. Operating System Library
                                                                                    1. Time and Date Functions
                                                                                      1. Current Time
                                                                                        1. Date Formatting
                                                                                          1. Time Calculations
                                                                                          2. System Interaction
                                                                                            1. Command Execution
                                                                                              1. Program Exit
                                                                                                1. Environment Variables
                                                                                                2. File System Operations
                                                                                                  1. File Renaming
                                                                                                    1. File Deletion
                                                                                                      1. Directory Operations