diff -r 010c5a03dca2 -r 4110ab35e5d8 coursework/cw04.tex --- a/coursework/cw04.tex Wed Sep 14 11:02:44 2016 +0100 +++ b/coursework/cw04.tex Wed Sep 14 16:51:04 2016 +0100 @@ -9,7 +9,7 @@ \section*{Coursework 4 (Strand 1)} -\noindent This coursework is worth 10\% and is due on 11 +\noindent This coursework is worth 5\% and is due on 13 December at 16:00. You are asked to implement a compiler for the WHILE language that targets the assembler language provided by Jasmin or Krakatau (both have very similar @@ -124,7 +124,7 @@ %submit your answers in a txt-file or as pdf.\bigskip -\subsection*{Question 1 (marked with 5\%)} +\subsection*{Question 1} You need to lex and parse WHILE programs, and then generate Java Byte Code instructions for the Jasmin assembler (or @@ -141,7 +141,7 @@ \caption{The Fibonacci program in the WHILE language.\label{fibs}} \end{figure} -\subsection*{Question 2 (marked with 4\%)} +\subsection*{Question 2} Extend the syntax of your language so that it contains also \texttt{for}-loops, like