diff --git a/src/lib.zig b/src/lib.zig index 2f35c2f49afde1ac3360759397cbaf0429d9b5b5..8a707b25d76f2cb53aea1d28babe14541009aabf 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -26,6 +26,8 @@ pub fn compile(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, co try writer.writeAll("\n"); } +pub const Writer = std.ArrayList(u8).Writer; + inline fn do(comptime Ctx: type, alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype, indent: usize, flag1: bool) anyerror!void { switch (comptime value) { .element => |v| {