when adding to followset in ONE_OR_MORE case, make sure we add the child to the followset as well
This commit is contained in:
@@ -630,6 +630,7 @@ struct
|
|||||||
end
|
end
|
||||||
| ONE_OR_MORE child =>
|
| ONE_OR_MORE child =>
|
||||||
let
|
let
|
||||||
|
val followSet = addToFollowSet (child, followSet)
|
||||||
val lp = lastpos (child, [])
|
val lp = lastpos (child, [])
|
||||||
val fp = firstpos (child, [])
|
val fp = firstpos (child, [])
|
||||||
val fp = Set.addFromList (fp, Set.LEAF)
|
val fp = Set.addFromList (fp, Set.LEAF)
|
||||||
|
|||||||
Reference in New Issue
Block a user