cws/cw04.tex
changeset 247 50a3b874008a
parent 245 975d34506e88
child 253 ec7a12806c3f
equal deleted inserted replaced
246:178438912e5f 247:50a3b874008a
   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