build: add build script and CMake helper for compiled packages

Compiling the compiler, the example and the demo by hand is error prone, so a
single script keeps the whole flow reproducible and ignores build outputs.
This commit is contained in:
BlackAngelTV committed 2026-11-18 08:48:05 +01:00
1 parent ab5ff6978a
commit 1ededcd655
6 files changed
+161

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
-- Example module that requires another compiled module.
local mathx = require("demo.mathx")
local M = {}
function M.hello(name)
return "Bonjour " .. name .. " !"
end
function M.double_factorial(n)
return mathx.factorial(n) * 2
end
return M