equal
deleted
inserted
replaced
170 \subsection*{Question 3} |
170 \subsection*{Question 3} |
171 |
171 |
172 Extend your lexer from Q2 to also simplify regular expressions |
172 Extend your lexer from Q2 to also simplify regular expressions |
173 after each derivation step and rectify the computed values after each |
173 after each derivation step and rectify the computed values after each |
174 injection. Use this lexer to tokenize the programs in |
174 injection. Use this lexer to tokenize the programs in |
175 Figure~\ref{fib}, \ref{loop} and \ref{factor}. Give the tokens of these |
175 Figure~\ref{fib}, \ref{loop} and \ref{factors}. Give the tokens of these |
176 programs where whitespaces are filtered out. Make sure you can |
176 programs where whitespaces are filtered out. Make sure you can |
177 tokenise \textbf{exactly} these programs.\bigskip |
177 tokenise \textbf{exactly} these programs.\bigskip |
178 |
178 |
179 |
179 |
180 \begin{figure}[h] |
180 \begin{figure}[h] |