mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
This commit allows using ZON (Zig Object Notation) in a few ways. * `@import` can be used to load ZON at comptime and convert it to a normal Zig value. In this case, `@import` must have a result type. * `std.zon.parse` can be used to parse ZON at runtime, akin to the parsing logic in `std.json`. * `std.zon.stringify` can be used to convert arbitrary data structures to ZON at runtime, again akin to `std.json`.
4 lines
139 B
Text
4 lines
139 B
Text
// zig fmt: off
|
|
\\Hello, world!
|
|
\\This is a multiline string!
|
|
\\ There are no escapes, we can, for example, include \n in the string
|