luacexplain:解释luac的输出

时间:2024-05-24 06:42:45
【文件属性】:

文件名称:luacexplain:解释luac的输出

文件大小:18KB

文件格式:ZIP

更新时间:2024-05-24 06:42:45

C

Luac说明 “ luacexplain”是一个小型程序,可增强“ luac -l”,尤其是“ luac -l -l”的输出。 它适用于希望更好地了解Lua VM的指令(或“操作码”)的人。 在每条VM指令之后,它打印两行: 伪代码解释指令的作用。 如果可能的话,指令的操作数应采用更易于理解的格式(为此,您必须使用“ luac -l -l”!)。 该程序的运行方式类似于Unix管道:将luac的输出通过管道传输到其中。 一个例子 假设我们在test.lua中具有以下代码: local c local function bobo(x, y) do local c = x + y end do local zzz = c end return "bye" end 让我们首先在其上运行普通香草“ luac”: $ luac -l -l -p te


【文件预览】:
luacexplain-master
----README.md(5KB)
----tests()
--------test1.lua(357B)
--------test2.lua(114B)
----lua53-lopcodes.h(9KB)
----lua52-lopcodes.h(8KB)
----luacexplain(11KB)
----lua51-lopcodes.h(8KB)
----lua50-lopcodes.h(7KB)

网友评论