Zig framework for generating Lua modules from Zig code, inspired by ziggy-pydust and powered by ziglua.
moon-base is still very much a work in progress!
contributions and feedback are very welcome.
this README will evolve with the project, assuming it matures.
for now, check the examples folder for how to write code using moon-base.
to use the examples/color.zig file from Lua,
for instance, on my Mac computer, I can run the following:
zig build examples
cd zig-out/lib/
luathis launches the Lua interpreter.
here is an example of using the resulting Color type:
Color = require 'Color'
a = Color.fromHex("#991500")
b = Color.fromHex("#110046")
print(a + b)which will output #aa1546ff.