coursework/cw02.tex
changeset 663 a7071c2a9446
parent 659 15b69ca63b29
child 719 0de3527e6ae3
equal deleted inserted replaced
662:8da26d4c2ca8 663:a7071c2a9446
   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]