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

parseAssignOp

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

Params

Errors

MaxDepth

File

zig/parser_generated_oracle.zig:2122
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
    pub fn parseAssignOp(p: *Parser) Error!bool {
        const def_index = @backingInt(Def.defAssignOp);
        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.parseASTERISKEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseASTERISKPIPEEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseSLASHEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parsePERCENTEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parsePLUSEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parsePLUSPIPEEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseMINUSEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseMINUSPIPEEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseLARROW2EQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseLARROW2PIPEEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseRARROW2EQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseAMPERSANDEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseCARETEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parsePIPEEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseASTERISKPERCENTEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parsePLUSPERCENTEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseMINUSPERCENTEQUAL()) break :blk_0 true;
            p.i = pos_0;
            if (try p.parseEQUAL()) break :blk_0 true;
            p.i = pos_0;
            break :blk_0 false;
        };
    }