Reputation: 111
I'm really struggling to unterstand the relationship between:
I'm pretty sure LALR(1) and SLR(1) are subsets of LR(1), but I'm lost about the others. Are they all exclusive? Is LL(0) a subset of LL(1)?
Thanks
Upvotes: 9
Views: 12583
Reputation: 373082
The containment rules are the following:
It's also the case that every language that has an LR(1) grammar also has an LR(0) grammar provided that you endmark the grammar, though the grammar isn't guaranteed to be pretty.
Upvotes: 14