authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-14 13:54:08 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-08-14 13:54:08 -07:00
loga40a27e182c022c67370b6af790e201baa4ae908
tree35f59ed3ed1465193308695568c4fefffd91fe58
parentf7e32bef2698466232c80e110c80051bf8204bd8

ast- make Body a type


1 files changed, 5 insertions(+), 3 deletions(-)

src/astgen.zig+5-3
......@@ -12,7 +12,7 @@ pub const Value = union(enum) {
1212 string: string,
1313 replacement: []const string,
1414 block: Block,
15 body: []const Value,
15 body: Body,
1616 function: Fn,
1717};
1818
......@@ -30,8 +30,8 @@ pub const Attr = struct {
3030pub const Block = struct {
3131 name: Type,
3232 args: []const []const string,
33 body: []const Value,
34 bttm: []const Value,
33 body: Body,
34 bttm: Body,
3535
3636 pub const Type = enum {
3737 each,
......@@ -42,6 +42,8 @@ pub const Block = struct {
4242 };
4343};
4444
45pub const Body = []const Value;
46
4547pub const Fn = struct {
4648 name: string,
4749 args: []const []const string,