File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 2323
2424\def\racketEd{0}
2525\def\pythonEd{1}
26- \def\edition{1 }
26+ \def\edition{0 }
2727
2828% material that is specific to the Racket edition of the book
2929\newcommand{\racket}[1]{{\if\edition\racketEd{#1}\fi}}
@@ -13008,20 +13008,14 @@ \section{Expose Allocation}
1300813008{\if\edition\racketEd
1300913009\[
1301013010\begin{array}{lcl}
13011- \Exp &::=& (\key{collect} \,\itm{int})
13012- \MID (\key{allocate} \,\itm{int}\,\itm{type})
13013- \MID (\key{global-value} \,\itm{name})
13011+ \Exp &::=& \COLLECT{\Int}
13012+ \MID \ALLOCATE{\Int}{\Type}
13013+ \MID \GLOBALVALUE{\Var}
1301413014\end{array}
1301513015\]
1301613016\fi}
1301713017{\if\edition\pythonEd\pythonColor
1301813018\[
13019- %% \begin{array}{lcl}
13020- %% \Exp &::=& \key{collect}(\itm{int})
13021- %% \MID \key{allocate}(\itm{int},\itm{type})
13022- %% \MID \key{global\_value}(\itm{name}) \\
13023- %% \Stmt &::= & \CASSIGN{\CPUT{\Exp}{\itm{int}}}{\Exp}
13024- %% \end{array}
1302513019\begin{array}{rcl}
1302613020 \Exp &::=& \GLOBALVALUE{\Var} \MID \ALLOCATE{\Int}{\Type}
1302713021 \MID \BEGIN{\Stmt^{*}}{\Exp}\\
You can’t perform that action at this time.
0 commit comments