added
authorChristian Urban <christian dot urban at kcl dot ac dot uk>
Sat, 05 Oct 2013 00:56:06 +0100
changeset 126 7c7185cb4f2b
parent 125 39c75cf4e079
child 127 41ef073ac6c4
added
handouts/ho02.pdf
handouts/ho02.tex
Binary file handouts/ho02.pdf has changed
--- a/handouts/ho02.tex	Sat Oct 05 00:36:53 2013 +0100
+++ b/handouts/ho02.tex	Sat Oct 05 00:56:06 2013 +0100
@@ -179,7 +179,14 @@
 \]
 
 \noindent
-holds, which means our algorithm satisfies the specification.
+holds, which means our algorithm satisfies the specification. This algorithm can be easily 
+extended for other regular expressions such as $r^{\{n\}}$, $r^?$, $\sim{}r$ and so on.
+
+\begin{figure}[p]
+{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app5.scala}}}
+{\lstset{language=Scala}\texttt{\lstinputlisting{../progs/app6.scala}}}
+\caption{Scala implementation of the nullable and derivatives functions.}
+\end{figure}
 
 \end{document}