From 79469e08b9920fa0b10d5e6dcc3dffc30e96928b Mon Sep 17 00:00:00 2001 From: Taylan Kammer Date: Tue, 9 Jun 2026 10:45:24 +0200 Subject: cleanup --- src/zisp/io/Parser.zig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/zisp/io/Parser.zig') diff --git a/src/zisp/io/Parser.zig b/src/zisp/io/Parser.zig index 3b5aa2a..9d36a57 100644 --- a/src/zisp/io/Parser.zig +++ b/src/zisp/io/Parser.zig @@ -37,6 +37,7 @@ const std = @import("std"); const Alloc = std.mem.Allocator; const List = std.ArrayListUnmanaged; +const Reader = std.Io.Reader; const gc = @import("../gc.zig"); const lib = @import("../lib.zig"); @@ -92,7 +93,7 @@ alloc: Alloc, istr_set: ?*IstrSet, pair_pool: *PairPool, -input: *std.Io.Reader = undefined, +input: *Reader = undefined, context: Context = .{}, stack: List(Context) = undefined, @@ -262,7 +263,7 @@ inline fn call(p: *Parser, f: Fn) !void { }; } -pub fn run(p: *Parser, input: *std.Io.Reader) !Value { +pub fn run(p: *Parser, input: *Reader) !Value { p.input = input; p.context.next = .parseUnit; while (p.context.next) |next| { -- cgit v1.2.3