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)
|
in lastpos (r, acc)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
lastpos (l, acc)
|
lastpos (r, acc)
|
||||||
| ALTERNATION {l, r, ...} =>
|
| ALTERNATION {l, r, ...} =>
|
||||||
let val acc = lastpos (l, acc)
|
let val acc = lastpos (l, acc)
|
||||||
in lastpos (r, acc)
|
in lastpos (r, acc)
|
||||||
|
|||||||
Reference in New Issue
Block a user