Zig’s translate-c can be used to automatically translate C to Zig. I’ve tried it on some cursed C code before and it worked well (outside of 1 small bug). I wonder how kilo auto-translated to Zig would compare to gram - it may serve as a good test bed for improving the translation of C-isms to idiomatic Zig.
Zig’s
translate-c
can be used to automatically translate C to Zig. I’ve tried it on some cursed C code before and it worked well (outside of 1 small bug). I wonder howkilo
auto-translated to Zig would compare togram
- it may serve as a good test bed for improving the translation of C-isms to idiomatic Zig.