cws/cw04.tex
changeset 247 87047208d5f4
parent 245 744496a2bade
child 253 4da8550b2d0b
equal deleted inserted replaced
246:884342f5abe0 247:87047208d5f4
   512 iadd 
   512 iadd 
   513 iadd
   513 iadd
   514 \end{lstlisting}
   514 \end{lstlisting}
   515 
   515 
   516 \noindent
   516 \noindent
   517 where the command \texttt{ldc} loads a constant onto a stack, and \texttt{imul},
   517 where the command \texttt{ldc} loads a constant onto the stack, and \texttt{imul},
   518 \texttt{isub} and \texttt{iadd} are commands acting on the stack. Clearly this
   518 \texttt{isub} and \texttt{iadd} are commands acting on the stack. Clearly this
   519 is the arithmetic expression in postfix notation.\bigskip
   519 is the arithmetic expression in postfix notation.\bigskip
   520 
   520 
   521 \noindent
   521 \noindent
   522 The shunting yard algorithm processes an input token list using an
   522 The shunting yard algorithm processes an input token list using an