diff -r 8bdc44963c0c -r 2151c77e1e24 cws/cw03.tex --- a/cws/cw03.tex Thu Nov 17 16:21:56 2016 +0000 +++ b/cws/cw03.tex Fri Nov 18 18:47:02 2016 +0000 @@ -1,18 +1,31 @@ \documentclass{article} -\usepackage{style} +\usepackage{../style} %%\usepackage{../langs} \begin{document} -\section*{Coursework 3} +\section*{Coursework 8 (Scala, Regular Expressions} -This coursework is worth XXX\% and is due on XXXX at +This coursework is worth 10\% and is due on XXXX at 16:00. You are asked to implement a regular expression matcher. +Make sure the files +you submit can be processed by just calling \texttt{scala + <>}.\bigskip + +\noindent +\textbf{Important:} Do not use any mutable data structures in your +submissions! They are not needed. This excluded the use of +\texttt{ListBuffer}s, for example. Do not use \texttt{return} in your +code! It has a different meaning in Scala, than in Java. +Do not use \texttt{var}! This declares a mutable variable. Feel free to +copy any code you need from files \texttt{knight1.scala}, +\texttt{knight2.scala} and \texttt{knight3.scala}. Make sure the +functions you submit are defined on the ``top-level'' of Scala, not +inside a class or object. - -\subsubsection*{Disclaimer} +\subsection*{Disclaimer} It should be understood that the work you submit represents your own effort. You have not copied from anyone else. An