equal
deleted
inserted
replaced
39 \normalsize |
39 \normalsize |
40 \begin{center} |
40 \begin{center} |
41 \begin{tabular}{ll} |
41 \begin{tabular}{ll} |
42 Email: & christian.urban at kcl.ac.uk\\ |
42 Email: & christian.urban at kcl.ac.uk\\ |
43 Office Hours: & Thursdays 12 -- 14\\ |
43 Office Hours: & Thursdays 12 -- 14\\ |
44 & N\liningnums{7.07} (North Wing, Bush House)\\ |
44 Location: & N7.07 (North Wing, Bush House)\\ |
45 Slides \& Progs: & KEATS\\ |
45 Slides \& Progs: & KEATS\\ |
46 \end{tabular} |
46 \end{tabular} |
47 \end{center} |
47 \end{center} |
48 |
48 |
49 \end{frame} |
49 \end{frame} |
431 \end{frame} |
431 \end{frame} |
432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
432 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
433 |
433 |
434 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
434 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
435 \begin{frame}[c] |
435 \begin{frame}[c] |
436 \frametitle{Remember BF***?} |
436 \frametitle{Remember BF*** from PEP?} |
437 |
437 |
438 \begin{center} |
438 \begin{center} |
439 \begin{tabular}{lcl} |
439 \begin{tabular}{lcl} |
440 \bl{\texttt{>}} & $\Rightarrow$ & move one cell right\\ |
440 \bl{\texttt{>}} & $\Rightarrow$ & move one cell right\\ |
441 \bl{\texttt{<}} & $\Rightarrow$ & move one cell left\\ |
441 \bl{\texttt{<}} & $\Rightarrow$ & move one cell left\\ |
452 \end{frame} |
452 \end{frame} |
453 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
453 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
454 |
454 |
455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
455 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
456 \begin{frame}[c] |
456 \begin{frame}[c] |
457 \frametitle{A Compiler for BF***} |
457 \frametitle{A ``Compiler'' for BF***} |
458 |
458 |
459 \begin{center} |
459 \begin{center} |
460 \begin{tabular}{lcl} |
460 \begin{tabular}{lcl} |
461 \bl{\texttt{>}} & $\Rightarrow$ & \texttt{ptr++}\\ |
461 \bl{\texttt{>}} & $\Rightarrow$ & \texttt{ptr++}\\ |
462 \bl{\texttt{<}} & $\Rightarrow$ & \texttt{ptr--}\\ |
462 \bl{\texttt{<}} & $\Rightarrow$ & \texttt{ptr--}\\ |
495 \end{tabular} |
495 \end{tabular} |
496 \end{textblock} |
496 \end{textblock} |
497 |
497 |
498 \end{frame} |
498 \end{frame} |
499 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
499 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
500 |
|
501 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
502 \begin{frame}[c] |
|
503 \frametitle{Lectures 5 - 10} |
|
504 |
|
505 code generation for a small imperative and a small functional languages\\[10mm] |
|
506 |
|
507 {\LARGE\bf Interpreters}\medskip\\ |
|
508 \hspace{5mm}(directly runs a program)\\[6mm] |
|
509 |
|
510 {\LARGE\bf Compilers}\medskip\\ |
|
511 \hspace{5mm}(generates JVM code) |
|
512 |
|
513 \begin{textblock}{1}(10,8.1) |
|
514 \begin{tabular}{c} |
|
515 \includegraphics[scale=0.4]{../pics/javaduke.png} |
|
516 \end{tabular} |
|
517 \end{textblock} |
|
518 |
|
519 \end{frame} |
|
520 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
|
521 |
|
522 |
500 |
523 |
501 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
524 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
502 \begin{frame}[t] |
525 \begin{frame}[t] |
503 \frametitle{Familiar Regular Expr.} |
526 \frametitle{Familiar Regular Expr.} |
504 \small |
527 \small |