| ... | ... | @@ -32,7 +32,11 @@ pub fn parse(comptime input: []const u8) astgen.Value { |
| 32 | 32 | return astgen.Value{ .element = astgen.do(tokenize.do(input, &.{ '[', '=', ']', '(', ')', '{', '}' })) }; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | | pub fn compile(writer: anytype, comptime value: astgen.Value, data: anytype, indent: usize, flag1: bool) anyerror!void { |
| 35 | pub fn compile(writer: anytype, comptime value: astgen.Value, data: anytype) !void { |
| 36 | return try do(writer, value, data, 0, false); |
| 37 | } |
| 38 | |
| 39 | fn do(writer: anytype, comptime value: astgen.Value, data: anytype, indent: usize, flag1: bool) anyerror!void { |
| 36 | 40 | switch (value) { |
| 37 | 41 | .element => |v| { |
| 38 | 42 | const hastext = for (v.children) |x| { |