Bläddra i källkod

Fix example code for calling interp-R0 on ast1.1

Onel Harrison 4 år sedan
förälder
incheckning
518a972208
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -919,7 +919,7 @@ operation prompts the user of the program for an integer.  Recall that
 program \eqref{eq:arith-prog} performs a \key{read} and then subtracts
 \code{8}. So if we run
 \begin{lstlisting}
-(interp-R0 ast1.1)
+(interp-R0 (Program '() ast1.1))
 \end{lstlisting}
 and if the input is \code{50}, then we get the answer to life, the
 universe, and everything: \code{42}!\footnote{\emph{The Hitchhiker's