# HG changeset patch # User Christian Urban # Date 1443106728 -3600 # Node ID 9470cd1246671f2127e4757a7261ffbffe1f02b4 # Parent 94700593a2d511ba79f8f4092537418b5d48d85a updated diff -r 94700593a2d5 -r 9470cd124667 coursework/cw01.pdf Binary file coursework/cw01.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 coursework/cw02.pdf Binary file coursework/cw02.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 coursework/cw03.pdf Binary file coursework/cw03.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 coursework/cw04.pdf Binary file coursework/cw04.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 coursework/cw05.pdf Binary file coursework/cw05.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho01.pdf Binary file handouts/ho01.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho01.tex --- a/handouts/ho01.tex Fri May 01 21:30:13 2015 +0100 +++ b/handouts/ho01.tex Thu Sep 24 15:58:48 2015 +0100 @@ -16,7 +16,7 @@ Knuth-Morris-Pratt algorithm, which is currently the most efficient general string search algorithm. But often we do \emph{not} just look for a particular string, but for string -patterns. For example in programming code we need to identify +patterns. For example in program code we need to identify what are the keywords, what are the identifiers etc. A pattern for identifiers could be stated as: they start with a letter, followed by zero or more letters, numbers and underscores. @@ -69,11 +69,12 @@ disposable.style.email.with+symbol@example.com \end{lstlisting} -As mentioned above, identifiers, or variables, in program text are often required -to satisfy the constraints that they start with a letter and -then can be followed by zero or more letters or numbers and -also can include underscores, but not as the first character. -Such identifiers can be recognised with the regular expression +As mentioned above, identifiers, or variables, in program code +are often required to satisfy the constraints that they start +with a letter and then can be followed by zero or more letters +or numbers and also can include underscores, but not as the +first character. Such identifiers can be recognised with the +regular expression \begin{center} \pcode{[a-zA-Z] [a-zA-Z0-9_]*} diff -r 94700593a2d5 -r 9470cd124667 handouts/ho02.pdf Binary file handouts/ho02.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho03.pdf Binary file handouts/ho03.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho04.pdf Binary file handouts/ho04.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho05.pdf Binary file handouts/ho05.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho06.pdf Binary file handouts/ho06.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/ho07.tex --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/handouts/ho07.tex Thu Sep 24 15:58:48 2015 +0100 @@ -0,0 +1,17 @@ +\documentclass{article} +\usepackage{../style} +\usepackage{../langs} + + +\begin{document} + +\section*{Handout 7 (Compiling)} + + + +\end{document} + +%%% Local Variables: +%%% mode: latex +%%% TeX-master: t +%%% End: diff -r 94700593a2d5 -r 9470cd124667 handouts/notation.pdf Binary file handouts/notation.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 handouts/scala-ho.pdf Binary file handouts/scala-ho.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw01.pdf Binary file hws/hw01.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw02.pdf Binary file hws/hw02.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw03.pdf Binary file hws/hw03.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw04.pdf Binary file hws/hw04.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw05.pdf Binary file hws/hw05.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw06.pdf Binary file hws/hw06.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw07.pdf Binary file hws/hw07.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw08.pdf Binary file hws/hw08.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/hw09.pdf Binary file hws/hw09.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 hws/proof.pdf Binary file hws/proof.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides01.pdf Binary file slides/slides01.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides01.tex --- a/slides/slides01.tex Fri May 01 21:30:13 2015 +0100 +++ b/slides/slides01.tex Thu Sep 24 15:58:48 2015 +0100 @@ -241,7 +241,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \begin{frame}[c] -\frametitle{Lectures 1 - 6} +\frametitle{Lectures 1 - 5} transforming strings into structured data\\[10mm] @@ -305,7 +305,7 @@ \begin{itemize} \item a web-crawler \item an email harvester -\item a web-scraper +\item \textcolor{gray}{a web-scraper} \end{itemize} \end{frame} diff -r 94700593a2d5 -r 9470cd124667 slides/slides02.pdf Binary file slides/slides02.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides03.pdf Binary file slides/slides03.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides04.pdf Binary file slides/slides04.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides05.pdf Binary file slides/slides05.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides06.pdf Binary file slides/slides06.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides07.pdf Binary file slides/slides07.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides08.pdf Binary file slides/slides08.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides09.pdf Binary file slides/slides09.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 slides/slides10.pdf Binary file slides/slides10.pdf has changed diff -r 94700593a2d5 -r 9470cd124667 style.sty --- a/style.sty Fri May 01 21:30:13 2015 +0100 +++ b/style.sty Thu Sep 24 15:58:48 2015 +0100 @@ -9,6 +9,8 @@ \definecolor{darkblue}{rgb}{0,0,0.6} \usepackage[colorlinks=true,urlcolor=darkblue,linkcolor=darkblue]{hyperref} +%%% for trees +%% http://anorien.csc.warwick.ac.uk/mirrors/CTAN/graphics/pgf/contrib/forest/forest.pdf \newcommand\grid[1]{% \begin{tikzpicture}[baseline=(char.base)]