diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-05-28 16:46:57 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-05-28 16:46:57 +0200 |
| commit | d138a622dcc77302cc452c52946f6202b6a03f5e (patch) | |
| tree | e5fb765accca5af0fe6c0877c15d1b60055c94a4 /src/recognizer.zig | |
| parent | 011e8e2ec2d7900d5c8d26f43f3b91999427be61 (diff) | |
Diffstat (limited to 'src/recognizer.zig')
| -rw-r--r-- | src/recognizer.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/recognizer.zig b/src/recognizer.zig index a6fe721..1934750 100644 --- a/src/recognizer.zig +++ b/src/recognizer.zig @@ -133,7 +133,7 @@ pub fn check(grammar: *Grammar, input: []const u8, inner_allocator: std.mem.Allo for (processing_queue.items) |base| { try forward_queue.append(.{ base.state, base }); - while (forward_queue.popOrNull()) |checkpoint| { + while (forward_queue.pop()) |checkpoint| { const last_state, const last_node = checkpoint; const rule = grammar.non_terminal_by_id(last_state.id).rules()[last_state.rule_index]; |