1 % !TEX program = xelatex |
1 % !TEX program = xelatex |
2 \documentclass[dvipsnames,14pt,t]{beamer} |
2 \documentclass[dvipsnames,14pt,t,xelatex,aspectratio=169,xcolor={table}]{beamer} |
3 \usepackage{../slides} |
3 \usepackage{../slides} |
4 \usepackage{../langs} |
4 \usepackage{../langs} |
5 \usepackage{../data} |
5 \usepackage{../data} |
6 \usepackage{../graphics} |
6 \usepackage{../graphics} |
7 \usepackage{../grammar} |
7 \usepackage{../grammar} |
16 \begin{frame}[t] |
16 \begin{frame}[t] |
17 \frametitle{% |
17 \frametitle{% |
18 \begin{tabular}{@ {}c@ {}} |
18 \begin{tabular}{@ {}c@ {}} |
19 \\[-3mm] |
19 \\[-3mm] |
20 \LARGE Compilers and \\[-2mm] |
20 \LARGE Compilers and \\[-2mm] |
21 \LARGE Formal Languages (7)\\[3mm] |
21 \LARGE Formal Languages\\[3mm] |
22 \end{tabular}} |
22 \end{tabular}} |
23 |
23 |
24 \normalsize |
24 \normalsize |
25 \begin{center} |
25 \begin{center} |
26 \begin{tabular}{ll} |
26 \begin{tabular}{ll} |
27 Email: & christian.urban at kcl.ac.uk\\ |
27 Email: & christian.urban at kcl.ac.uk\\ |
28 Office Hours: & Thursdays 12 -- 14\\ |
28 %Office Hours: & Thursdays 12 -- 14\\ |
29 Location: & N7.07 (North Wing, Bush House)\\ |
29 %Location: & N7.07 (North Wing, Bush House)\\ |
30 Slides \& Progs: & KEATS (also homework is there)\\ |
30 Slides \& Progs: & KEATS (also homework is there)\\ |
31 \end{tabular} |
31 \end{tabular} |
|
32 \end{center} |
|
33 |
|
34 \begin{center} |
|
35 \begin{tikzpicture} |
|
36 \node[drop shadow,fill=white,inner sep=0pt] |
|
37 {\footnotesize\rowcolors{1}{capri!10}{white} |
|
38 \begin{tabular}{|p{4.8cm}|p{4.8cm}|}\hline |
|
39 1 Introduction, Languages & 6 While-Language \\ |
|
40 2 Regular Expressions, Derivatives & \cellcolor{blue!50} 7 Compilation, JVM \\ |
|
41 3 Automata, Regular Languages & 8 Compiling Functional Languages \\ |
|
42 4 Lexing, Tokenising & 9 Optimisations \\ |
|
43 5 Grammars, Parsing & 10 LLVM \\ \hline |
|
44 \end{tabular}% |
|
45 }; |
|
46 \end{tikzpicture} |
32 \end{center} |
47 \end{center} |
33 |
48 |
34 \end{frame} |
49 \end{frame} |
35 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
50 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
36 |
51 |
137 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
152 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
138 \begin{frame}[c] |
153 \begin{frame}[c] |
139 \frametitle{\begin{tabular}{c}Fibonacci Numbers\end{tabular}} |
154 \frametitle{\begin{tabular}{c}Fibonacci Numbers\end{tabular}} |
140 |
155 |
141 \mbox{}\\[-18mm]\mbox{} |
156 \mbox{}\\[-18mm]\mbox{} |
142 |
157 ?? |
143 {\lstset{language=While}\fontsize{10}{12}\selectfont |
158 %{\lstset{language=While}\fontsize{10}{12}\selectfont |
144 \texttt{\lstinputlisting{../progs/fib.while}}} |
159 %\texttt{\lstinputlisting{../progs/fib.while}}} |
145 |
160 |
146 \end{frame} |
161 \end{frame} |
147 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
162 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
148 |
163 |
149 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
164 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
194 \begin{frame}[c] |
209 \begin{frame}[c] |
195 \frametitle{Test Program} |
210 \frametitle{Test Program} |
196 |
211 |
197 \mbox{}\\[-18mm]\mbox{} |
212 \mbox{}\\[-18mm]\mbox{} |
198 |
213 |
199 {\lstset{language=While}\fontsize{10}{12}\selectfont |
214 ?? |
200 \texttt{\lstinputlisting{../progs/loops.while}}} |
215 %{\lstset{language=While}\fontsize{10}{12}\selectfont |
|
216 %\texttt{\lstinputlisting{../progs/loops.while}}} |
201 |
217 |
202 \end{frame} |
218 \end{frame} |
203 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
219 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
204 |
220 |
205 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
221 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |