authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-07 00:44:12 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-07 00:44:12 -07:00
logfc91e20a929580012b00146244103b3fb38b26ff
treeebfa62a99d7f37a1d824899b09801d35139a2a1a
parenta13451232ed898228f9fed468cc815a5c6ebf18c

astgen- add list of other block types


2 files changed, 5 insertions(+), 0 deletions(-)

src/astgen.zig+4
......@@ -33,6 +33,10 @@ pub const Block = struct {
3333
3434 pub const Type = enum {
3535 each,
36 @"if",
37 ifnot,
38 ifequal,
39 ifnotequal,
3640 };
3741};
3842
src/lib.zig+1
......@@ -91,6 +91,7 @@ fn do(writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype
9191 }
9292 }
9393 },
94 else => @compileError("pek: block: TODO " ++ @tagName(v.name)),
9495 }
9596 },
9697 else => unreachable,