|
@@ -1227,7 +1227,7 @@ environment with the result value bound to the variable, using
|
|
|
|
|
|
(define (interp-R1 p)
|
|
(define (interp-R1 p)
|
|
(match p
|
|
(match p
|
|
- [(Program info e) ((interp-exp '()) e)]
|
|
|
|
|
|
+ [(Program '() e) ((interp-exp '()) e)]
|
|
))
|
|
))
|
|
\end{lstlisting}
|
|
\end{lstlisting}
|
|
\caption{Interpreter for the $R_1$ language.}
|
|
\caption{Interpreter for the $R_1$ language.}
|
|
@@ -1908,8 +1908,8 @@ implement the clauses for variables and for the \key{let} form.
|
|
|
|
|
|
(define (uniquify p)
|
|
(define (uniquify p)
|
|
(match p
|
|
(match p
|
|
- [(Program info e)
|
|
|
|
- (Program info ((uniquify-exp '()) e))]
|
|
|
|
|
|
+ [(Program '() e)
|
|
|
|
+ (Program '() ((uniquify-exp '()) e))]
|
|
)))
|
|
)))
|
|
\end{lstlisting}
|
|
\end{lstlisting}
|
|
\caption{Skeleton for the \key{uniquify} pass.}
|
|
\caption{Skeleton for the \key{uniquify} pass.}
|