\begin{frame}{LL$(k)$ Grammars} The class of LL$(1)$ grammars is often to restrictive in practice. \pause\medskip LL$(1)$ parsers looks at $1$ symbol to decide which rule to use. \pause\bigskip \begin{goal}{} An \alert{LL$(k)$} parser \alert{looks $k$ symbols ahead} to choose the rule. \pause\medskip The parser table is constructed with $k$ symbols look-ahead. \pause\medskip A grammar is LL$(k)$ if this table has in every cell $\le 1$ rule. \end{goal} \pause\bigskip LL$(k)$ is strictly contained in LL$(k+1)$. \pause\medskip \emph{Disadvantage}: size of the parser table grows exponential in $k$. \end{frame}