lua5.1.4核心的源代码共55个文件,大致分析如下:
lapi.c // Lua API,C调用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,调试
ldebug.c // Debug Interface,调试
ldebug.h // Auxiliary functions from Debug Interface module,调试
ldo.c // Stack and Call structure of Lua
ldo.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 // 指令定义
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,C语言中用来调用Lua函数的头文件
luac.c // Lua compiler (saves bytecodes to files; also list bytecodes)
luaconf.h // Configuration file for Lua
lualib.h // Lua standard libraries,Lua标准库的定义文件
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
Lua 源文件分析
最新推荐文章于 2022-09-06 10:30:35 发布