Skip to content

robbielyman/moon-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

moon-base

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/
lua

this 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.

About

Zig framework for generating Lua modules from Zig code, inspired by ziggy-pydust and powered by ziglua

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages