I'm trying to establish (through constructing a Hasse diagram) the subset relationship between the classes of languages that can be parsed by $\operatorname{LL}(k)$ and $\operatorname{LR}(k)$ parsers. My guess is that
$$\operatorname{LL}(0) \subset \operatorname{LL}(1) \subset \operatorname{LL}(2) \subset \dots \\ \cap \phantom{\operatorname{LL}(0)} \cap \phantom{\operatorname{LL}(0)} \cap \phantom{\operatorname{LL}(0)}\\ \operatorname{LR}(0) \subset \operatorname{LR}(1) \subset \operatorname{LR}(2) \subset \dots$$
but I'm not sure if that's correct. Can someone verify this?
To further understand the relationship, I'd also like to find out:
- Am I correct in thinking $\bigcup_{k=0}^\infty \operatorname{LR}(k) =$ $\mathrm{DCFL}$?
- What about $\bigcup_{k=0}^\infty \operatorname{LL}(k)$?
- Where would the class of $\operatorname{LL}(^*\!)$-parsable languages fit into this diagram?