|
@@ -4892,6 +4892,17 @@ your results against Figure~\ref{fig:shift-reduce}.
|
|
|
\end{exercise}
|
|
|
|
|
|
|
|
|
+\begin{exercise}
|
|
|
+ Change the parser in your compiler for \LangVar{} to set the
|
|
|
+ \code{parser} option of Lark to \code{'lalr'}. Test your compiler on
|
|
|
+ all the \LangVar{} programs that you have created. In doing so, Lark
|
|
|
+ may signal an error due to shift/reduce or reduce/reduce conflicts
|
|
|
+ in your grammar. If so, change your Lark grammar for \LangVar{} to
|
|
|
+ remove those conflicts.
|
|
|
+
|
|
|
+\end{exercise}
|
|
|
+
|
|
|
+
|
|
|
\section{Further Reading}
|
|
|
|
|
|
UNDER CONSTRUCTION
|