amendment to 'lastpos' function: if right child is not nullable, then get lastpos of right child, or else get union of them both

This commit is contained in:
2025-10-06 13:50:34 +01:00
parent e05c690548
commit 2779b61c1f

View File

@@ -274,7 +274,7 @@ struct
in lastpos (r, acc)
end
else
lastpos (l, acc)
lastpos (r, acc)
| ALTERNATION {l, r, ...} =>
let val acc = lastpos (l, acc)
in lastpos (r, acc)