master
 1//! ZON parsing and stringification.
 2//!
 3//! ZON ("Zig Object Notation") is a textual file format. Outside of `nan` and `inf` literals, ZON's
 4//! grammar is a subset of Zig's.
 5//!
 6//! Supported Zig primitives:
 7//! * boolean literals
 8//! * number literals (including `nan` and `inf`)
 9//! * character literals
10//! * enum literals
11//! * `null` literals
12//! * string literals
13//! * multiline string literals
14//!
15//! Supported Zig container types:
16//! * anonymous struct literals
17//! * anonymous tuple literals
18//!
19//! Here is an example ZON object:
20//! ```
21//! .{
22//!     .a = 1.5,
23//!     .b = "hello, world!",
24//!     .c = .{ true, false },
25//!     .d = .{ 1, 2, 3 },
26//!     .e = .{ .x = 13, .y = 67 },
27//! }
28//! ```
29//!
30//! Individual primitives are also valid ZON, for example:
31//! ```
32//! "This string is a valid ZON object."
33//! ```
34//!
35//! ZON may not contain type names.
36//!
37//! ZON does not have syntax for pointers, but the parsers will allocate as needed to match the
38//! given Zig types. Similarly, the serializer will traverse pointers.
39
40pub const parse = @import("zon/parse.zig");
41pub const stringify = @import("zon/stringify.zig");
42pub const Serializer = @import("zon/Serializer.zig");
43
44test {
45    _ = parse;
46    _ = stringify;
47}