Online Lua 5.1 source code browser
Recommended reading order:
- lmathlib.c, lstrlib.c: get familiar with the external C API. Don't
bother with the pattern matcher though. Just the easy functions.
- lapi.c: Check how the API is implemented internally. Only skim this
to get a feeling for the code. Cross-reference to lua.h and luaconf.h
as needed.
- lobject.h: tagged values and object representation. skim through
this first. you'll want to keep a window with this file open all the
time.
- lstate.h: state objects. ditto.
- lopcodes.h: bytecode instruction format and opcode definitions. easy.
- lvm.c: scroll down to luaV_execute, the main interpreter loop. see
how all of the instructions are implemented. skip the details for now.
reread later.
- ldo.c: calls, stacks, exceptions, coroutines. tough read.
- lstring.c: string interning. cute, huh?
- ltable.c: hash tables and arrays. tricky code.
- ltm.c: metamethod handling, reread all of lvm.c now.
- You may want to reread lapi.c now.
- ldebug.c: surprise waiting for you. abstract interpretation is used
to find object names for tracebacks. does bytecode verification, too.
- lparser.c, lcode.c: recursive descent parser, targetting a
register-based VM. start from chunk() and work your way through. read
the expression parser and the code generator parts last.
- lgc.c: incremental garbage collector. take your time.
- Read all the other files as you see references to them. Don't let your stack get too deep though.
If you're done before X-Mas and understood all of it, you're good. The information density of the code is rather high.
相关推荐
lua_reading:Lua 5.3.0源码阅读,阅读过程中加入注释方便理解
lua source code, linux
所有版本LUA源码 lua-5.3.5 lua-5.3.4 lua-5.3.3 lua-5.3.2 lua-5.3.1 lua-5.3.0 lua-5.2.4 lua-5.2.3 lua-5.2.2 lua-5.2.1 lua-5.2.0 lua-5.1.5 lua-5.1.4 lua-5.1.3 lua-5.1.2 lua-5.1.1 lua-5.1 lua-5.0.3 lua-...
基于https://github.com/dansen/luacode 修改的版本。增强如下: 1、增加自定义API的支持;使用文本文件定义自己的API(包括类对象(lua中叫 userData)),格式很简单; 2、对自动完成和函数提示作了较多的增强;...
lua.exe LuaCode.lua 或 lua LuaCode.lua 相关参数的使用说明见本参考手册的第六章。 作为中文版的《Lua 5.0 Reference Manual》,本参考手册主要针对Lua 5.0,而不是Lua 5.1。尽管如此,本参考手册中的绝大...
ios版本将lua加密成luac
内含luaDll,luacom以及luaiconv源码。luaDll和luaiconv直接打开sln在Visual studio中即可进行编译。luacom可使用nmake进行编译。也可直接使用已经生成了的dll.
lua 反编译工具 用于学习lua 反编汇 游戏lua 解密
将lua嵌入到c/c++ 将lua嵌入到c/c++
lua5.3.5原始学习 目录 lua基本数据类型介绍 lua表设计与实现 字符串的设计与实现 lua GC算法
基于https://github.com/dansen/luacode 修改的版本。增强如下: 1、增加自定义API的支持;使用文本文件定义自己的API(包括类对象(lua中叫 userData)),格式很简单; 2、对自动完成和函数提示作了较多的增强;...
lua.exe LuaCode.lua 或 lua LuaCode.lua 相关参数的使用说明见本参考手册的第六章。 作为中文版的《Lua 5.0 Reference Manual》,本参考手册主要针对Lua 5.0,而不是Lua 5.1。尽管如此,本参考手册中的绝大...
Lua 代码点列表中的德洛尼三角剖分和 Voronoi 分解代码。 它包含在一个使用 CoronaLabs SDK for android 和 IOS 的漂亮演示中。
JS和LUA交互,主要是JS和LUA交互实现模版,可以作为参考
LUAC 脚本加密 , 用于LUAC 脚本反编译,有用得同学可以下载,
lua5.3(32位/64位)windows 预编译(exe/DLL) adding: lua5.3.5-x86/lua.exe (in=14336) (out=7311) (deflated 49%) adding: lua5.3.5-x86/lua.o (in=24873) (out=9654) (deflated 61%) adding: lua5.3.5-x86/lua...
支持在vs2012、2013上编辑lua源码,支持代码高亮自动补全错误检查等,扩展了一些别的特性。 代码开源在github:https://github.com/liyang1221/BabeLua 在vs插件库的地址:...
luaapi lua中文
1、简单工厂模式lua实现 2、工厂方法模式lua实现 3、原型模式lua实现 4、建造者模式lua实现 5、单例模式lua实现 6、抽象工厂模式lua实现 结构型模式 1、装饰模式lua实现 2、代理模式lua实现 3、外观模式lua实现 4、...