coursework/cw04.tex
changeset 630 3cea57c5501f
parent 607 d58013f17af8
child 706 7d85a4599549
equal deleted inserted replaced
629:8a29ba6975a7 630:3cea57c5501f
       
     1 % !TEX program = xelatex
     1 \documentclass{article}
     2 \documentclass{article}
     2 \usepackage{../style}
     3 \usepackage{../style}
     3 \usepackage{../langs}
     4 \usepackage{../langs}
     4 
     5 
     5 \begin{document}
     6 \begin{document}
     7 %https://github.com/Storyyeller/Krakatau
     8 %https://github.com/Storyyeller/Krakatau
     8 %https://docs.oracle.com/javase/specs/jvms/se7/html/
     9 %https://docs.oracle.com/javase/specs/jvms/se7/html/
     9 
    10 
    10 \section*{Coursework 4 (Strand 1)}
    11 \section*{Coursework 4 (Strand 1)}
    11 
    12 
    12 \noindent This coursework is worth 6\% and is due on 14
    13 \noindent This coursework is worth 6\% and is due on 13
    13 December at 18:00. You are asked to implement a compiler for
    14 December at 18:00. You are asked to implement a compiler for
    14 the WHILE language that targets the assembler language
    15 the WHILE language that targets the assembler language
    15 provided by Jasmin or Krakatau (both have very similar
    16 provided by Jasmin or Krakatau (both have very similar
    16 syntax). You can do the implementation in any programming
    17 syntax). You can do the implementation in any programming
    17 language you like, but you need to submit the source code with
    18 language you like, but you need to submit the source code with
   193 }
   194 }
   194 \end{lstlisting}
   195 \end{lstlisting}
   195 \end{minipage}
   196 \end{minipage}
   196 \end{center}
   197 \end{center}
   197 
   198 
   198 \subsection*{Question 3 (marked with 1\%)}
   199 \subsection*{Question 3}
   199 
   200 
   200 \noindent In this question you are supposed to give the
   201 \noindent In this question you are supposed to give the
   201 assembler instructions for the program
   202 assembler instructions for the program
   202 
   203 
   203 \begin{center}
   204 \begin{center}