We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93f9177 commit 75b7fb5Copy full SHA for 75b7fb5
book.tex
@@ -23,7 +23,7 @@
23
24
\def\racketEd{0}
25
\def\pythonEd{1}
26
-\def\edition{0}
+\def\edition{1}
27
28
% material that is specific to the Racket edition of the book
29
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
@@ -1723,7 +1723,7 @@ \section{Example Compiler: A Partial Evaluator}
1723
case BinOp(left, Add(), right):
1724
return pe_add(pe_exp(left), pe_exp(right))
1725
case BinOp(left, Sub(), right):
1726
- return pe_add(pe_exp(left), pe_neg(right))
+ return pe_add(pe_exp(left), pe_neg(pe_exp(right)))
1727
case UnaryOp(USub(), v):
1728
return pe_neg(pe_exp(v))
1729
case Constant(value):
0 commit comments