|
|
@ -133,7 +133,7 @@ fn getStartingNodes(nodes: *const Nodes) CurrentNodes { |
|
|
|
var starting_nodes = std.mem.zeroes(CurrentNodes); |
|
|
|
var starting_nodes = std.mem.zeroes(CurrentNodes); |
|
|
|
var current_index: usize = 0; |
|
|
|
var current_index: usize = 0; |
|
|
|
for (nodes.*) |node| { |
|
|
|
for (nodes.*) |node| { |
|
|
|
if (node.current_label != 0 and node.current_label & FIVE_BITS == 0) { |
|
|
|
if (node.line_index != 0 and node.current_label & FIVE_BITS == 0) { |
|
|
|
if (current_index == 0) { |
|
|
|
if (current_index == 0) { |
|
|
|
for (&starting_nodes) |*starting_node| { |
|
|
|
for (&starting_nodes) |*starting_node| { |
|
|
|
starting_node.* = node.line_index; |
|
|
|
starting_node.* = node.line_index; |
|
|
|