AboutLua source fileAnalysis is the content to be introduced in this article.LuaOfSource FileI think that as a beginner, I should learn and understand these content. For details, refer to this article.
Lua5.1.4 The core source code contains 55 files, which are roughly analyzed as follows:
- Lapi. c // Lua API, C calls API
- Lapi. h // Auxiliary functions from Lua API
- Lauxlib. c // Auxiliary functions for building Lua libraries
- Lauxlib. h // Auxiliary functions for building Lua libraries
- Lbaselib. c // Basic library
- Lcode. c // Code generator for Lua
- Lcode. h // Code generator for Lua
- Ldblib. c // Interface from Lua to its debug API, debugging
- Ldebug. c // Debug Interface, debugging
- Ldebug. h // Auxiliary functions from Debug Interface module, debugging
- Ldos. c // Stack and Call structure of Lua
- Ldos. h // Stack and Call structure of Lua
- Ldump. c // save precompiled Lua chunks
- Lfunc. c // Auxiliary functions to manipulate prototypes and closures
- Lfunc. h // Auxiliary functions to manipulate prototypes and closures
- Lgc. c // Garbage Collector
- Lgc. h // Garbage Collector
- Linit. c // Initialization of libraries for lua. c
- Liolib. c // Standard I/O (and system) library
- Llex. c // Lexical Analyzer
- Llex. h // Lexical Analyzer
- Llimits. h // Limits, basic types, and some other 'installation-dependent' definitions
- Lmathlib. c // Standard mathematical library
- Lmem. c // Interface to Memory Manager
- Lmem. h // Interface to Memory Manager
- Loadlib. c // Dynamic library loader for Lua
- Lobject. c // Some generic functions over Lua objects
- Lobject. h // Type definitions for Lua objects
- Lopcodes. c // command Definition
- Lopcodes. h // Opcodes for Lua virtual machine
- Loslib. c // Standard Operating System library
- Lparser. c // Lua Parser
- Lparser. h // Lua Parser
- Lstate. c // Global State
- Lstate. h // Global State
- Lstring. c // String table (keeps all strings handled by Lua)
- Lstring. h // String table (keeps all strings handled by Lua)
- Lstrlib. c // Standard library for string operations and pattern-matching
- Ltable. c // Lua tables (hash)
- Ltable. h // Lua tables (hash)
- Ltablib. c // Library for Table Manipulation
- Ltm. c // Tag methods
- Ltm. h // Tag methods
- Lua. c // Lua stand-alone interpreter
- Lua. h // Lua-An Extensible Extension Language, which is the header file used to call the Lua function in C.
- Luac. c // Lua compiler (saves bytecodes to files; also list bytecodes)
- Luaconf. h // Configuration file for Lua
- Lualib. h // Lua standard libraries, definition file of Lua standard library
- Lundump. c // load precompiled Lua chunks
- Lundump. h // load precompiled Lua chunks
- Lvm. c // Lua virtual machine
- Lvm. h // Lua virtual machine
- Lzio. c // a generic input stream interface
- Lzio. h // Buffered streams
- Print. c // print bytecodes
Summary: required documents for beginners: AboutLua source fileThe analysis is complete. I hope this article will help you!