Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
malcolmstill committed Mar 24, 2024
1 parent f5c7dc1 commit b17b962
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions biscuit/src/authorizer.zig
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ pub const Authorizer = struct {

pub fn addFact(authorizer: *Authorizer, input: []const u8) !void {
std.debug.print("authorizer.addFact = {s}\n", .{input});
var parser = Parser.init(input);
var parser = Parser.init(authorizer.allocator, input);

const fact = try parser.fact(authorizer.allocator);
const fact = try parser.fact();

std.debug.print("fact = {any}\n", .{fact});

try authorizer.world.addFact(try fact.convert(authorizer.allocator, &authorizer.symbols));
}

pub fn addCheck(authorizer: *Authorizer, input: []const u8) !void {
var parser = Parser.init(input);
var parser = Parser.init(authorizer.allocator, input);

const check = try parser.check(authorizer.allocator);
const check = try parser.check();

try authorizer.checks.append(check);
}
Expand Down

0 comments on commit b17b962

Please sign in to comment.