소스 검색

Merge pull request #44 from onelharrison/fix-typo-in-partial-evaluator

Match on empty list instead of pattern variable in partial evaluator for R0
Jeremy G. Siek 4 년 전
부모
커밋
8a3f87b372
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.}