Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 standard library. Public Function

parsekeyword

Public Function
std.zig.parser_generated_oracle.Parser.parsekeyword
pub fn parsekeyword(p: *Parser) Error!bool

Params

Errors

MaxDepth

File

zig/parser_generated_oracle.zig:6450
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
    pub fn parsekeyword(p: *Parser) Error!bool {
        const def_index = @backingInt(Def.defkeyword);
        if (p.depths[def_index] > max_depth) return error.MaxDepth;
        p.depths[def_index] += 1;
        defer p.depths[def_index] -= 1;
        return blk_0: {
            const pos_0 = p.i;
            if (try p.parseKEYWORD_addrspace()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_align()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_allowzero()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_and()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_anyframe()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_anytype()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_asm()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_break()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_callconv()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_catch()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_comptime()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_const()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_continue()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_defer()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_else()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_enum()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_errdefer()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_error()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_export()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_extern()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_fn()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_for()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_if()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_inline()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_noalias()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_nosuspend()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_noinline()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_opaque()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_or()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_orelse()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_packed()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_pub()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_resume()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_return()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_linksection()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_struct()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_suspend()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_switch()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_test()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_threadlocal()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_try()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_union()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_unreachable()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_var()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_volatile()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseKEYWORD_while()) break :blk_0 true;
            p.i = pos_0;
            break :blk_0 false;
        };
    }