formats-luau foundation: build (darklua + token passes) for Roblox and LuaJIT, compat prelude, core, Types, host adapters, API + registry, lint, tests on both runtimes; absorb deflate (codecs/Deflate + new compressor) and png (image/png + new encoder)

This commit is contained in:
4DBug committed 2026-10-31 08:18:01 -05:00
commit cdcb5b0b77
226 files changed
+8409

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
--!strict
-- host/Luau: the Luau CLI (and any embedding without io): no file system. Sources are buffers or strings.
local Err = require("@formats/core/Err")
local Host = {}
Host.name = "luau"
Host.hasFiles = false
function Host.readFile(path: string): (buffer?, Err.Err?)
return nil, Err.new(Err.IO, "no file system on this host (luau): pass a buffer or a string, not the path " .. path)
end
function Host.writeFile(path: string, _data: buffer): (boolean, Err.Err?)
return false, Err.new(Err.IO, "no file system on this host (luau): cannot write " .. path)
end
function Host.exists(_path: string): boolean
return false
end
return Host