X-Git-Url: https://git.ayoreis.com/zlox.git/blobdiff_plain/5e3ec8fe273e7a23ea827d4d9e7ac598491875d3..b1df22a631a16008822c347371e35f7b54b2eed8:/src/main.zig?ds=inline diff --git a/src/main.zig b/src/main.zig index 0e41f10..a17dbd7 100644 --- a/src/main.zig +++ b/src/main.zig @@ -71,7 +71,7 @@ fn run(allocator: Allocator, source: []const u8) !void { std.debug.print("{s}\n", .{printed}); } -pub fn @"error"(line: u32, message: []const u8) !void { +pub fn scanError(line: u32, message: []const u8) !void { try report(line, "", message); } @@ -85,7 +85,7 @@ fn report(line: u32, where: []const u8, message: []const u8) !void { hadError = true; } -pub fn parse_error(allocator: Allocator, token: Token, message: []const u8) !void { +pub fn parseError(allocator: Allocator, token: Token, message: []const u8) !void { if (token.type == .eof) { try report(token.line, " at end", message); } else {