|
@@ -25,7 +25,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
\def\racketEd{0}
|
|
\def\pythonEd{1}
|
|
\def\pythonEd{1}
|
|
-\def\edition{1}
|
|
|
|
|
|
+\def\edition{0}
|
|
|
|
|
|
% material that is specific to the Racket edition of the book
|
|
% material that is specific to the Racket edition of the book
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
|
|
@@ -10558,11 +10558,12 @@ the condition expression.
|
|
|
|
|
|
Only three small additions are needed in the
|
|
Only three small additions are needed in the
|
|
\code{select\_instructions} pass to handle the changes to
|
|
\code{select\_instructions} pass to handle the changes to
|
|
-\LangCLoop{}. That is, a \code{Call} to \code{read} may now appear as a
|
|
|
|
-stand-alone statement instead of only appearing on the right-hand
|
|
|
|
-side of an assignment statement. The code generation is nearly
|
|
|
|
-identical; just leave off the instruction for moving the result into
|
|
|
|
-the left-hand side.
|
|
|
|
|
|
+\LangCLoop{}. That is, a call to
|
|
|
|
+\racket{\code{read}}\python{\code{input\_int}} may appear as a
|
|
|
|
+stand-alone statement instead of only appearing on the right-hand side
|
|
|
|
+of an assignment statement. The code generation is nearly identical;
|
|
|
|
+just leave off the instruction for moving the result into the
|
|
|
|
+left-hand side.
|
|
|
|
|
|
\fi}
|
|
\fi}
|
|
|
|
|