coursework/cw03.tex
author Christian Urban <christian dot urban at kcl dot ac dot uk>
Fri, 07 Nov 2014 14:02:38 +0000
changeset 299 6322922aa990
parent 298 bdf84605b6cd
child 300 08d99acd35e8
permissions -rw-r--r--
update
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     1
\documentclass{article}
299
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
     2
\usepackage{../style}
216
f5ec7c597c5b updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 214
diff changeset
     3
\usepackage{../langs}
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     4
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     5
\begin{document}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     6
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     7
\section*{Coursework 3}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     8
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
     9
\noindent
299
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    10
This coursework is worth 5\% and is due on 28 November at 16:00. You 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    11
are asked to implement a parser for the WHILE language and also 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    12
an iterpreter.
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    13
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    14
299
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    15
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    16
\subsection*{Question 1 (marked with 1\%)}
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    17
201
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    18
You need to lex and parse WHILE programs and submit the assembler 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    19
instructions for the Fibonacci program and for the program you submitted
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    20
in Coursework 2 in Question 3. The latter should be so modified that 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    21
a user can input the upper bound on the console (in the original question
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    22
it was fixed to 100).
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    23
201
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    24
\subsection*{Question 2 (marked with 2\%)}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    25
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 200
diff changeset
    26
299
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 298
diff changeset
    27
\subsection*{Question 3 (marked with 2\%)}
205
0b59588d28d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 204
diff changeset
    28
0b59588d28d2 updated
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 204
diff changeset
    29
202
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 201
diff changeset
    30
214
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents: 213
diff changeset
    31
200
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    32
\end{document}
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    33
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    34
%%% Local Variables: 
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    35
%%% mode: latex
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    36
%%% TeX-master: t
Christian Urban <christian dot urban at kcl dot ac dot uk>
parents:
diff changeset
    37
%%% End: