equal
deleted
inserted
replaced
65 {\bf UPDATE:} There was a typo in Q1 about the regular expressions for comments: |
65 {\bf UPDATE:} There was a typo in Q1 about the regular expressions for comments: |
66 they should, of course, start with $\slash\slash$, as in C for example, not with |
66 they should, of course, start with $\slash\slash$, as in C for example, not with |
67 $\backslash\backslash$. (Thanks to Bryan who pointed out this error.)\bigskip\bigskip |
67 $\backslash\backslash$. (Thanks to Bryan who pointed out this error.)\bigskip\bigskip |
68 |
68 |
69 \noindent |
69 \noindent |
70 This coursework is worth 3\% and is due on 27 November at 16:00. You are asked to |
70 This coursework is worth 3\% and is due on 29 November at 16:00. You are asked to |
71 |
71 |
72 \begin{enumerate} |
72 \begin{enumerate} |
73 \item implement a tokeniser for the WHILE language, |
73 \item implement a tokeniser for the WHILE language, |
74 \item implement a parser and an evaluator for boolean and arithmetic expressions, and |
74 \item implement a parser and an evaluator for boolean and arithmetic expressions, and |
75 \item write a WHILE program for printing out prime numbers. |
75 \item write a WHILE program for printing out prime numbers. |