Skip to content

Commit c4b950f

Browse files
committed
abstract syntax for LAlloc in racket
1 parent b4e30ee commit c4b950f

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

book.tex

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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}\\

0 commit comments

Comments
 (0)