More exaustive example, fixed grammar

This commit is contained in:
elvis
2025-09-11 02:17:40 +02:00
parent 91f69c9e6d
commit 63c34981ae
5 changed files with 396 additions and 102 deletions

View File

@ -241,7 +241,7 @@ where
);
// Temporary debug.
err.push_str("Expected: ");
err.push_str("\nExpected: ");
let mut it = expected.iter().peekable();
while let Some(s) = it.next() {
err.push('(');
@ -577,6 +577,7 @@ pub fn grouping(
if let EvaluatedSystem::Graph { graph, translator } = system {
for node in graph.node_indices() {
let val = group.execute(graph, &node, translator)?;
println!("node: {node:?} -> val: {val:?}");
buckets.entry(val.clone()).or_insert(vec![]).push(node);
let l = buckets.get(&val).unwrap().first().unwrap();
leader.insert(node, (*l, val));