aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/recognizer.zig2
-rw-r--r--src/scheduler.zig2
2 files changed, 2 insertions, 2 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];
diff --git a/src/scheduler.zig b/src/scheduler.zig
index b2ab0db..9034a84 100644
--- a/src/scheduler.zig
+++ b/src/scheduler.zig
@@ -2,7 +2,7 @@ const std = @import("std");
pub fn Scheduler(function: anytype) type {
const FuncType = @TypeOf(function);
- const func_info = @typeInfo(FuncType).Fn;
+ const func_info = @typeInfo(FuncType).@"fn";
const R = func_info.return_type orelse std.builtin.Type.Void;
const ArgType = std.meta.ArgsTuple(FuncType);