--- a/slides/slides04.tex Fri Nov 25 00:03:15 2022 +0000
+++ b/slides/slides04.tex Fri Dec 02 07:48:03 2022 +0000
@@ -1,8 +1,8 @@
% !TEX program = xelatex
-\documentclass[dvipsnames,14pt,t,xelatex]{beamer}
-\usepackage{../slides}
-\usepackage{../graphics}
-\usepackage{../langs}
+\documentclass[dvipsnames,14pt,t,xelatex,aspectratio=169,xcolor={table}]{beamer}
+\usepackage{../styles/slides}
+\usepackage{../styles/mygraphs}
+\usepackage{../styles/langs}
%%\usepackage{../data}
\usepackage[export]{adjustbox}
\usetikzlibrary{shapes}
@@ -177,10 +177,11 @@
Email: & christian.urban at kcl.ac.uk\\
%Office: & N\liningnums{7.07} (North Wing, Bush House)\bigskip\\
Slides \& Code: & KEATS\bigskip\\
- %Office Hours: & Thursdays 12:00 -- 14:00\\
- %Additionally: & (for Scala) Tuesdays 10:45 -- 11:45\\
- \multicolumn{2}{c}{\Large\textbf{https://pollev.com/cfltutoratki576}}\\[2cm]
- \textcolor{red}{Scala Install Clinic:} & \textcolor{red}{This evening at 17:00 (online)}\\
+
+ Office Hour: & Fridays 11:00 -- 12:00\\
+ Location: & N7.07 (North Wing, Bush House)\bigskip\\
+
+ Pollev: & \texttt{\alert{https://pollev.com/cfltutoratki576}}\\ \\
\end{tabular}
\end{center}
@@ -188,30 +189,30 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\begin{frame}[c]
-\frametitle{Hints in CW}
-
-\begin{center}
-\includegraphics[scale=0.4]{../pics/hints.png}
-\end{center}
-
-\small
-\begin{itemize}
- \item Scala Library, e.g.~\texttt{span} in \\
- \url{https://www.scala-lang.org/api/current/scala/collection/immutable/List.html}
-\end{itemize}
-\end{frame}
+%\begin{frame}[c]
+%\frametitle{Hints in CW}
+%
+%\begin{center}
+%\includegraphics[scale=0.4]{../pics/hints.png}
+%\end{center}
+%
+%\small
+%\begin{itemize}
+% \item Scala Library, e.g.~\texttt{span} in \\
+% \url{https://www.scala-lang.org/api/current/scala/collection/immutable/List.html}
+%\end{itemize}
+%\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\begin{frame}[c]
-\frametitle{Discussion Forum}
+%\begin{frame}[c]
+%\frametitle{Discussion Forum}
-\begin{center}
-\includegraphics[scale=0.38]{/Users/cu/discussion.png}
-\end{center}
+%\begin{center}
+%\includegraphics[scale=0.38]{/Users/cu/discussion.png}
+%\end{center}
-\end{frame}
+%\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -333,6 +334,26 @@
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\begin{frame}[c,fragile]
+\frametitle{Last Week: Pattern Matching}
+\small
+
+\begin{lstlisting}[language=Scala, numbers=none, xleftmargin=3mm]
+def mkeps(r: Rexp) : Val = r match {
+ case ONE => Empty
+ case ALT(r1, r2) => ...
+ case SEQ(r1, r2) => ...
+ case STAR(r) => ...
+ case RECD(x, r1) => Rec(x, mkeps(r))
+ ...
+}
+\end{lstlisting}
+
+\end{frame}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}[c,fragile]
\frametitle{Reverse Polish Notation}