|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
\def\racketEd{0}
|
|
\def\racketEd{0}
|
|
\def\pythonEd{1}
|
|
\def\pythonEd{1}
|
|
-\def\edition{0}
|
|
|
|
|
|
+\def\edition{1}
|
|
|
|
|
|
% 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}}
|
|
@@ -995,7 +995,7 @@ figure~\ref{fig:r0-concrete-syntax} and the abstract syntax for
|
|
\itm{binaryop} &::= & \code{Add()} \MID \code{Sub()} \\
|
|
\itm{binaryop} &::= & \code{Add()} \MID \code{Sub()} \\
|
|
\itm{unaryop} &::= & \code{USub()} \\
|
|
\itm{unaryop} &::= & \code{USub()} \\
|
|
\Exp{} &::=& \INT{\Int} \MID \READ{} \\
|
|
\Exp{} &::=& \INT{\Int} \MID \READ{} \\
|
|
- &\MID& \UNIOP{\itm{unaryop}}{\Exp} \MID \BINOP{\itm{binaryop}}{\Exp}{\Exp} \\
|
|
|
|
|
|
+ &\MID& \UNIOP{\itm{unaryop}}{\Exp} \MID \BINOP{\Exp}{\itm{binaryop}}{\Exp} \\
|
|
\Stmt{} &::=& \PRINT{\Exp} \MID \EXPR{\Exp}
|
|
\Stmt{} &::=& \PRINT{\Exp} \MID \EXPR{\Exp}
|
|
\end{array}
|
|
\end{array}
|
|
}
|
|
}
|