equal
deleted
inserted
replaced
191 filtered out. Make sure you can tokenise \textbf{exactly} these |
191 filtered out. Make sure you can tokenise \textbf{exactly} these |
192 programs.\bigskip |
192 programs.\bigskip |
193 |
193 |
194 |
194 |
195 \begin{figure}[h] |
195 \begin{figure}[h] |
196 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/fib.while}} |
196 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../cwtests/cw02/fib.while}} |
197 \caption{Fibonacci program in the WHILE language.\label{fib}} |
197 \caption{Fibonacci program in the WHILE language.\label{fib}} |
198 \end{figure} |
198 \end{figure} |
199 |
199 |
200 \begin{figure}[h] |
200 \begin{figure}[h] |
201 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/loops.while}} |
201 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../cwtests/cw02/loops.while}} |
202 \caption{The three-nested-loops program in the WHILE language. |
202 \caption{The three-nested-loops program in the WHILE language. |
203 (Usually used for timing measurements.)\label{loop}} |
203 (Usually used for timing measurements.)\label{loop}} |
204 \end{figure} |
204 \end{figure} |
205 |
205 |
206 \begin{figure}[h] |
206 \begin{figure}[h] |
207 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/factors.while}} |
207 \mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../cwtests/cw02/factors.while}} |
208 \caption{A program that calculates factors for numbers in the WHILE |
208 \caption{A program that calculates factors for numbers in the WHILE |
209 language.\label{factors}} |
209 language.\label{factors}} |
210 \end{figure} |
210 \end{figure} |
211 |
211 |
212 \begin{figure}[h] |
212 \begin{figure}[h] |