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 {...@@ -33,6 +33,10 @@ pub const Block = struct {
3333
34 pub const Type = enum {34 pub const Type = enum {
35 each,35 each,
36 @"if",
37 ifnot,
38 ifequal,
39 ifnotequal,
36 };40 };
37};41};
3842
src/lib.zig+1
...@@ -91,6 +91,7 @@ fn do(writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype...@@ -91,6 +91,7 @@ fn do(writer: anytype, comptime value: astgen.Value, data: anytype, ctx: anytype
91 }91 }
92 }92 }
93 },93 },
94 else => @compileError("pek: block: TODO " ++ @tagName(v.name)),
94 }95 }
95 },96 },
96 else => unreachable,97 else => unreachable,