| ... | @@ -12,7 +12,7 @@ pub const Value = union(enum) { | ... | @@ -12,7 +12,7 @@ pub const Value = union(enum) { |
| 12 | string: string, | 12 | string: string, |
| 13 | replacement: []const string, | 13 | replacement: []const string, |
| 14 | block: Block, | 14 | block: Block, |
| 15 | body: []const Value, | 15 | body: Body, |
| 16 | function: Fn, | 16 | function: Fn, |
| 17 | }; | 17 | }; |
| 18 | | 18 | |
| ... | @@ -30,8 +30,8 @@ pub const Attr = struct { | ... | @@ -30,8 +30,8 @@ pub const Attr = struct { |
| 30 | pub const Block = struct { | 30 | pub const Block = struct { |
| 31 | name: Type, | 31 | name: Type, |
| 32 | args: []const []const string, | 32 | args: []const []const string, |
| 33 | body: []const Value, | 33 | body: Body, |
| 34 | bttm: []const Value, | 34 | bttm: Body, |
| 35 | | 35 | |
| 36 | pub const Type = enum { | 36 | pub const Type = enum { |
| 37 | each, | 37 | each, |
| ... | @@ -42,6 +42,8 @@ pub const Block = struct { | ... | @@ -42,6 +42,8 @@ pub const Block = struct { |
| 42 | }; | 42 | }; |
| 43 | }; | 43 | }; |
| 44 | | 44 | |
| | 45 | pub const Body = []const Value; |
| | 46 | |
| 45 | pub const Fn = struct { | 47 | pub const Fn = struct { |
| 46 | name: string, | 48 | name: string, |
| 47 | args: []const []const string, | 49 | args: []const []const string, |