equal
deleted
inserted
replaced
4 |
4 |
5 \begin{document} |
5 \begin{document} |
6 |
6 |
7 \section*{Coursework 3 (Strand 1)} |
7 \section*{Coursework 3 (Strand 1)} |
8 |
8 |
9 \noindent |
9 \noindent This coursework is worth 5\% and is due on 27 |
10 This coursework is worth 5\% and is due on 26 November at 16:00. You |
10 November at 16:00. You are asked to implement a parser for the |
11 are asked to implement a parser for the WHILE language and also |
11 WHILE language and also an interpreter. You can do the |
12 an interpreter. You should use the lexer from the previous |
12 implementation in any programming language you like, but you |
13 coursework for the parser. |
13 need to submit the source code with which you answered the |
|
14 questions, otherwise a mark of 0\% will be awarded. You should |
|
15 use the lexer from the previous coursework for the parser. |
14 |
16 |
|
17 \subsection*{Disclaimer} |
|
18 |
|
19 It should be understood that the work you submit represents |
|
20 your own effort. You have not copied from anyone else. An |
|
21 exception is the Scala code I showed during the lectures, |
|
22 which you can use. You can also use your own code from the |
|
23 CW~1 and CW~2. |
15 |
24 |
16 |
25 |
17 \subsection*{Question 1 (marked with 1\%)} |
26 \subsection*{Question 1 (marked with 1\%)} |
18 |
27 |
19 Design a grammar for the WHILE language and give the grammar |
28 Design a grammar for the WHILE language and give the grammar |