You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While zon2json works right now for any build.zig.zon files I've thrown at it. The ast walker itself isn't really complete. Zon files itself are literally zig structs, so they may contain actual zig expressions I don't intend to maintain a zig interpreter so consider instead making zon2json a program that depends on zig compiler that generates a program that does something like:
@dermetfan Yes it is actually one of the reasons I started doing this, because it could not handle recursive dependencies, and can't handle recent .zon formats.
While zon2json works right now for any
build.zig.zon
files I've thrown at it. The ast walker itself isn't really complete.Zon files itself are literally zig structs, so they may contain actual zig expressions I don't intend to maintain a zig interpreter soconsider instead making zon2json a program that depends on zig compiler that generates a program that does something like:This would make sure zon files are always handled properly. cons might be speed, but zig should cache the outputs.
At some point it might become possible to import zon files as well: ziglang/zig#14531
ref: ziglang/zig#15552
The text was updated successfully, but these errors were encountered: