equal
deleted
inserted
replaced
9 \noindent This coursework is worth 5\% and is due on 6 |
9 \noindent This coursework is worth 5\% and is due on 6 |
10 November at 16:00. You are asked to implement the Sulzmann \& |
10 November at 16:00. You are asked to implement the Sulzmann \& |
11 Lu tokeniser for the WHILE language. You can do the |
11 Lu tokeniser for the WHILE language. You can do the |
12 implementation in any programming language you like, but you |
12 implementation in any programming language you like, but you |
13 need to submit the source code with which you answered the |
13 need to submit the source code with which you answered the |
14 questions, otherwise a mark of 0\% will be awarded. However, |
14 questions, otherwise a mark of 0\% will be awarded. You can |
15 the coursework will \emph{only} be judged according to the |
15 submit your answers in a txt-file or as pdf. |
16 answers. You can submit your answers in a txt-file or as pdf. |
|
17 |
16 |
18 \subsection*{Disclaimer} |
17 \subsection*{Disclaimer} |
19 |
18 |
20 It should be understood that the work you submit represents |
19 It should be understood that the work you submit represents |
21 your own effort. You have not copied from anyone else. An |
20 your own effort. You have not copied from anyone else. An |
91 $r^{\{n\}}$ & n-times $r$\\ |
90 $r^{\{n\}}$ & n-times $r$\\ |
92 \end{tabular} |
91 \end{tabular} |
93 \end{center} |
92 \end{center} |
94 |
93 |
95 \noindent |
94 \noindent |
96 Try to design regular expressions to be as small as possible. |
95 Try to design your regular expressions to be as small as possible. |
97 |
96 |
98 \subsection*{Question 2 (marked with 3\%)} |
97 \subsection*{Question 2 (marked with 3\%)} |
99 |
98 |
100 Implement the Sulzmann \& Lu tokeniser from the lectures. For |
99 Implement the Sulzmann \& Lu tokeniser from the lectures. For |
101 this you need to implement the functions $nullable$ and $der$ |
100 this you need to implement the functions $nullable$ and $der$ |