语言核心
表与数据
元编程
运行模型
工程化
宿主集成
综合
附录
34-mini-dsl
34-mini-dsl/03-compile-to-lua/_test.lua
lua · 0.3 KB
-- @runtimes lua54 luajit local h = require("harness") local m = require("main") h.describe("编译到 Lua", function() h.it("解释与编译结果一致", function() local r = m.run(function() end) h.eq(r.interpreted, 7) h.eq(r.compiled, 7) end) end) h.run()
该文件由构建期采集,未做任何改写;源码页不进入搜索引擎索引。