Binary file coursework/cw02.pdf has changed
--- a/coursework/cw02.tex Sun Nov 03 11:10:07 2013 +0100
+++ b/coursework/cw02.tex Sun Nov 10 09:27:01 2013 +0000
@@ -111,7 +111,7 @@
\noindent
Once you have implemented all regular expressions for 1 - 9, then
-give the token sequence for the Fibonacci program shown below.
+give the token sequence for the Fibonacci program shown below in Fig.~\ref{fib}.
\subsection*{Question 2 (marked with 1\%)}
@@ -138,15 +138,19 @@
and ``three-nested-loops'' program shown below. For example, printing a variable \texttt{x} in the
WHILE language can be done by using the command \mbox{\texttt{write x}}.
-
+\begin{figure}[h]
\begin{center}
\mbox{\lstinputlisting[language=while]{../progs/fib.while}}
\end{center}
+\caption{Fibonacci program in the WHILE language.\label{fib}}
+\end{figure}
+\begin{figure}[h]
\begin{center}
\mbox{\lstinputlisting[language=while]{../progs/loops.while}}
\end{center}
-
+\caption{The three-nested-loops program in the WHILE language. Usually used for timing measurements.\label{loop}}
+\end{figure}
\end{document}
Binary file hws/hw06.pdf has changed