authorchloe caruso <git@paperclover.net> 2024-10-29 00:09:55-07:00
committerchloe caruso <git@paperclover.net> 2024-10-29 00:09:55-07:00
logd0dcd18fdc6d392a08e9449f59bc9f2d2049f720
tree924b58b6455356cd95e4aa1002a5e0ef1e6960e4
parentb1f64e4c22560b8bf8cfa321d28ea21308dfb957
signature Commit is signed but in an unrecognized format.

fix todos


3 files changed, 4 insertions(+), 2 deletions(-)

src/core/Ast.Dump.zig+2
...@@ -75,6 +75,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err...@@ -75,6 +75,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err
75 .string,75 .string,
76 .number_int,76 .number_int,
77 .number_float,77 .number_float,
78 .enum_literal,
78 => try writer.print(" {s}", .{state.ast.tokenSlice(main_token)}),79 => try writer.print(" {s}", .{state.ast.tokenSlice(main_token)}),
7980
80 else => unreachable,81 else => unreachable,
...@@ -124,6 +125,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err...@@ -124,6 +125,7 @@ fn dumpNode(writer: anytype, state: *State, node: NodeIndex) @TypeOf(writer).Err
124 .block_void,125 .block_void,
125 .block_implicit_return,126 .block_implicit_return,
126 .struct_decl,127 .struct_decl,
128 .@"enum",
127 => try dumpNodeList(writer, state, list, '{', '}'),129 => try dumpNodeList(writer, state, list, '{', '}'),
128 .builtin_call,130 .builtin_call,
129 .tuple_init,131 .tuple_init,
src/core/Ast.zig+1-1
...@@ -344,7 +344,7 @@ pub const Node = struct {...@@ -344,7 +344,7 @@ pub const Node = struct {
344 .shr_assign = .bin,344 .shr_assign = .bin,
345 .@"enum" = .list,345 .@"enum" = .list,
346 .enum_literal = .none,346 .enum_literal = .none,
347 .enum_field = .none,347 .enum_field = .enum_field,
348 .string = .none,348 .string = .none,
349 .struct_decl = .list,349 .struct_decl = .list,
350 .array_type = .un,350 .array_type = .un,
src/core/Parse.zig+1-1
...@@ -742,7 +742,7 @@ fn parseEnumField(p: *Parse) Error!NodeIndex {...@@ -742,7 +742,7 @@ fn parseEnumField(p: *Parse) Error!NodeIndex {
742 null;742 null;
743743
744 return try p.addNode(.{744 return try p.addNode(.{
745 .tag = .struct_field,745 .tag = .enum_field,
746 .main_token = main_token,746 .main_token = main_token,
747 .data = .{ .enum_field = .{747 .data = .{ .enum_field = .{
748 .payload = .init(payload),748 .payload = .init(payload),