Quellcode durchsuchen

Match on empty list instead of pattern variable in partial evaluator for R0

Onel Harrison vor 4 Jahren
Ursprung
Commit
c6b75f0fac
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -1003,7 +1003,7 @@ functions is the output of partially evaluating the children.
 
 (define (pe-R0 p)
   (match p
-    [(Program info e) (Program info (pe-exp e))]
+    [(Program '() e) (Program '() (pe-exp e))]
     ))
 \end{lstlisting}
 \caption{A partial evaluator for $R_0$ expressions.}