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.

parse

Returns true if the input source is in the language defined by the grammar. Returns error.MaxDepth if more than max_depth levels of recursion/iteration are reached.

parser_generated_oracle.parse
pub fn parse(source: []const u8) Error!bool

File

lib/std/zig/parser_generated_oracle.zig:12

Code

pub fn parse(source: []const u8) Error!bool {
    var p: Parser = .{ .source = source, .i = 0, .depths = @splat(1) };
    return p.parseRoot();
}