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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user