| author | |
| committer | |
| log | cf841a5bb507b03e0e8ed1877bce8b9da4b97e3f |
| tree | dba18eaa7793316d752c8d4f08bd7e26bde76373 |
| parent | c21ce202c557a710fba6a2333f33bee7bbea114c |
| signature |
2 files changed, 4 insertions(+), 4 deletions(-)
README.md+1-1| ... | @@ -3,7 +3,7 @@ | ... | @@ -3,7 +3,7 @@ |
| 3 |  | 3 |  |
| 4 | [](https://github.com/nektro/zig-intrusive-parser/blob/master/LICENSE) | 4 | [](https://github.com/nektro/zig-intrusive-parser/blob/master/LICENSE) |
| 5 | [](https://github.com/sponsors/nektro) | 5 | [](https://github.com/sponsors/nektro) |
| 6 | [](https://ziglang.org/) | 6 | [](https://ziglang.org/) |
| 7 | [](https://github.com/nektro/zigmod) | 7 | [](https://github.com/nektro/zigmod) |
| 8 | 8 | ||
| 9 | Core plumbing to make text or binary document parsers with Data Oriented Design | 9 | Core plumbing to make text or binary document parsers with Data Oriented Design |
intrusive_parser.zig+3-3| ... | @@ -6,13 +6,13 @@ const nio = @import("nio"); | ... | @@ -6,13 +6,13 @@ const nio = @import("nio"); |
| 6 | pub const Parser = struct { | 6 | pub const Parser = struct { |
| 7 | any: nio.AnyReadable, | 7 | any: nio.AnyReadable, |
| 8 | allocator: std.mem.Allocator, | 8 | allocator: std.mem.Allocator, |
| 9 | temp: std.ArrayListUnmanaged(u8) = .{}, | 9 | temp: std.ArrayListUnmanaged(u8) = .empty, |
| 10 | idx: usize = 0, | 10 | idx: usize = 0, |
| 11 | end: bool = false, | 11 | end: bool = false, |
| 12 | line: usize = 1, | 12 | line: usize = 1, |
| 13 | col: usize = 1, | 13 | col: usize = 1, |
| 14 | data: std.ArrayListUnmanaged(u8) = .{}, | 14 | data: std.ArrayListUnmanaged(u8) = .empty, |
| 15 | strings_map: std.StringArrayHashMapUnmanaged(usize) = .{}, | 15 | strings_map: std.StringArrayHashMapUnmanaged(usize) = .empty, |
| 16 | string_tag: u8, | 16 | string_tag: u8, |
| 17 | 17 | ||
| 18 | pub fn init(allocator: std.mem.Allocator, any: nio.AnyReadable, string_tag: u8) Parser { | 18 | pub fn init(allocator: std.mem.Allocator, any: nio.AnyReadable, string_tag: u8) Parser { |