Explorar o código

Match on empty list instead of pattern variable in interp-R1

Onel Harrison %!s(int64=4) %!d(string=hai) anos
pai
achega
e5b795e96b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -1227,7 +1227,7 @@ environment with the result value bound to the variable, using
 
 (define (interp-R1 p)
   (match p
-    [(Program info e) ((interp-exp '()) e)]
+    [(Program '() e) ((interp-exp '()) e)]
     ))
 \end{lstlisting}
 \caption{Interpreter for the $R_1$ language.}