diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-05-22 14:32:53 +0200 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2025-05-22 14:32:53 +0200 |
| commit | f49a8e54eeaa5bca332fc7cc977d47583e8fe297 (patch) | |
| tree | fd7c14e2b49b6be944d3338b2164999ecb6c6065 /src/gss.zig | |
| parent | 7b1bcf03c6684ab2f44592d5fff11c7c3de0b00c (diff) | |
grammar: fix invalid grammar loading error
Diffstat (limited to 'src/gss.zig')
| -rw-r--r-- | src/gss.zig | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gss.zig b/src/gss.zig index 9201ca6..12b3b46 100644 --- a/src/gss.zig +++ b/src/gss.zig @@ -6,7 +6,6 @@ pub fn Node(T: type) type { parents: *std.ArrayList(*Self), state: T, - is_toplevel: bool = false, pub fn init(state: T, allocator: std.mem.Allocator) !Self { const parents = try allocator.create(std.ArrayList(*Self)); @@ -22,7 +21,6 @@ pub fn Node(T: type) type { return Self { .parents = self.parents, .state = state, - .is_toplevel = self.is_toplevel, }; } @@ -76,7 +74,6 @@ pub fn Graph(T: type) type { self.number_of_nodes += 1; const node = try self.allocator.create(Node(T)); node.* = try Node(T).init(state, self.allocator); - node.is_toplevel = true; return node; } |