1 \documentclass{article} |
1 \documentclass{article} |
2 \usepackage{style} |
2 \usepackage{../style} |
3 %%\usepackage{../langs} |
3 %%\usepackage{../langs} |
4 |
4 |
5 \begin{document} |
5 \begin{document} |
6 |
6 |
7 \section*{Coursework 3} |
7 \section*{Coursework 8 (Scala, Regular Expressions} |
8 |
8 |
9 This coursework is worth XXX\% and is due on XXXX at |
9 This coursework is worth 10\% and is due on XXXX at |
10 16:00. You are asked to implement a regular expression matcher. |
10 16:00. You are asked to implement a regular expression matcher. |
11 |
11 |
12 |
12 Make sure the files |
13 |
13 you submit can be processed by just calling \texttt{scala |
14 |
14 <<filename.scala>>}.\bigskip |
15 \subsubsection*{Disclaimer} |
15 |
|
16 \noindent |
|
17 \textbf{Important:} Do not use any mutable data structures in your |
|
18 submissions! They are not needed. This excluded the use of |
|
19 \texttt{ListBuffer}s, for example. Do not use \texttt{return} in your |
|
20 code! It has a different meaning in Scala, than in Java. |
|
21 Do not use \texttt{var}! This declares a mutable variable. Feel free to |
|
22 copy any code you need from files \texttt{knight1.scala}, |
|
23 \texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the |
|
24 functions you submit are defined on the ``top-level'' of Scala, not |
|
25 inside a class or object. |
|
26 |
|
27 |
|
28 \subsection*{Disclaimer} |
16 |
29 |
17 It should be understood that the work you submit represents |
30 It should be understood that the work you submit represents |
18 your own effort. You have not copied from anyone else. An |
31 your own effort. You have not copied from anyone else. An |
19 exception is the Scala code I showed during the lectures or |
32 exception is the Scala code I showed during the lectures or |
20 uploaded to KEATS, which you can freely use.\bigskip |
33 uploaded to KEATS, which you can freely use.\bigskip |