diff -r 921fdd17d2b8 -r 896a5f91838d coursework/cw02.tex --- a/coursework/cw02.tex Wed Oct 19 08:46:50 2016 +0100 +++ b/coursework/cw02.tex Sat Oct 22 13:11:33 2016 +0100 @@ -95,6 +95,15 @@ \end{tabular} \end{center} +\noindent +Later on you will also need the record regular expressions: + +\begin{center} +\begin{tabular}{ll} +$REC(x:r)$ & record regular expression\\ +\end{tabular} +\end{center} + \noindent Try to design your regular expressions to be as small as possible. For example you should use character ranges for identifiers and numbers. @@ -129,7 +138,7 @@ \begin{tabular}{ll} regex: & string:\smallskip\\ $a^{\{3\}}$ & $aaa$\\ -$(a + \epsilon)^{\{3\}}$ & $aa$ +$(a + \ONE)^{\{3\}}$ & $aa$ \end{tabular} \end{center}