16 lines
323 B
Zig
16 lines
323 B
Zig
|
const std = @import("std");
|
||
|
|
||
|
const Allocator = std.mem.Allocator;
|
||
|
|
||
|
pub const Scanner = struct {
|
||
|
source: []const u8,
|
||
|
allocator: *Allocator,
|
||
|
|
||
|
pub fn init(allocator: *Allocator, data: []const u8) Scanner {
|
||
|
return Scanner{
|
||
|
.allocator = allocator,
|
||
|
.source = data,
|
||
|
};
|
||
|
}
|
||
|
};
|