diff --git a/src/astgen.zig b/src/astgen.zig index a57b1760057d28c378ad8244c131def00376ab7a..ac58529ea2b5c0ab539cd7a989ccf179fde9a5f1 100644 --- a/src/astgen.zig +++ b/src/astgen.zig @@ -12,7 +12,7 @@ pub const Value = union(enum) { string: string, replacement: []const string, block: Block, - body: []const Value, + body: Body, function: Fn, }; @@ -30,8 +30,8 @@ pub const Attr = struct { pub const Block = struct { name: Type, args: []const []const string, - body: []const Value, - bttm: []const Value, + body: Body, + bttm: Body, pub const Type = enum { each, @@ -42,6 +42,8 @@ pub const Block = struct { }; }; +pub const Body = []const Value; + pub const Fn = struct { name: string, args: []const []const string,