equal
deleted
inserted
replaced
126 \begin{frame}[c,fragile] |
126 \begin{frame}[c,fragile] |
127 \frametitle{Compiling Ifs} |
127 \frametitle{Compiling Ifs} |
128 |
128 |
129 For example |
129 For example |
130 |
130 |
131 \begin{lstlisting}[mathescape,numbers=none,language={}] |
131 \begin{lstlisting}[mathescape,numbers=none,language=While] |
132 if 1 = 1 then x := 2 else y := 3 |
132 if 1 = 1 then x := 2 else y := 3 |
133 \end{lstlisting} |
133 \end{lstlisting} |
134 |
134 |
135 |
135 |
136 \begin{center} |
136 \begin{center} |
162 \begin{frame}[c,fragile] |
162 \begin{frame}[c,fragile] |
163 \frametitle{Compiling Whiles} |
163 \frametitle{Compiling Whiles} |
164 |
164 |
165 For example |
165 For example |
166 |
166 |
167 \begin{lstlisting}[mathescape,numbers=none,language={}] |
167 \begin{lstlisting}[mathescape,numbers=none,language=While] |
168 while x <= 10 do x := x + 1 |
168 while x <= 10 do x := x + 1 |
169 \end{lstlisting} |
169 \end{lstlisting} |
170 |
170 |
171 |
171 |
172 \begin{center} |
172 \begin{center} |
569 \begin{textblock}{7}(1,-0.2)\footnotesize |
569 \begin{textblock}{7}(1,-0.2)\footnotesize |
570 \begin{minipage}{6cm} |
570 \begin{minipage}{6cm} |
571 \begin{lstlisting}[language=JVMIS,basicstyle=\ttfamily, numbers=none, escapeinside={(*@}{@*)}] |
571 \begin{lstlisting}[language=JVMIS,basicstyle=\ttfamily, numbers=none, escapeinside={(*@}{@*)}] |
572 .method public static facT(II)I |
572 .method public static facT(II)I |
573 .limit locals 2 |
573 .limit locals 2 |
574 .limit stack 7 |
574 .limit stack 6 |
575 (*@\hl{facT\_Start:} @*) |
575 (*@\hl{facT\_Start:} @*) |
576 iload 0 |
576 iload 0 |
577 ldc 0 |
577 ldc 0 |
578 if_icmpne If_else_2 |
578 if_icmpne If_else_2 |
579 iload 1 |
579 iload 1 |