Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

TopLevelKeywords

Keywords that are be the first token in a statement and (if so) dictate how the rest of the statement is parsed.

rc.TopLevelKeywords
pub const TopLevelKeywords = enum

File

Code

pub const TopLevelKeywords = enum {
    language,
    version,
    characteristics,
    stringtable,

    pub const map = std.StaticStringMapWithEql(
        TopLevelKeywords,
        std.static_string_map.eqlAsciiIgnoreCase,
    ).initComptime(.{
        .{ "LANGUAGE", .language },
        .{ "VERSION", .version },
        .{ "CHARACTERISTICS", .characteristics },
        .{ "STRINGTABLE", .stringtable },
    });
}