Pārlūkot izejas kodu

collect is a stmt

Jeremy Siek 2 nedēļas atpakaļ
vecāks
revīzija
b31fab5cf0
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      book.tex

+ 4 - 3
book.tex

@@ -13023,9 +13023,10 @@ translation of tuple creation\index{subject}{Lalloc@\LangAlloc{}}.
 %%    \Stmt &::= & \CASSIGN{\CPUT{\Exp}{\itm{int}}}{\Exp}
 %% \end{array}
 \begin{array}{rcl}
-\Exp &::=& \COLLECT{\Int} \MID \ALLOCATE{\Int}{\Type} \\
-     &\MID& \GLOBALVALUE{\Var} \MID \BEGIN{\Stmt^{*}}{\Exp}\\
-\Stmt{} &::=& \ASSIGN{\PUT{\Exp}{\itm{int}}}{\Exp} 
+  \Exp &::=&  \GLOBALVALUE{\Var} \MID \ALLOCATE{\Int}{\Type} \\
+       &\MID& \BEGIN{\Stmt^{*}}{\Exp}\\
+  \Stmt{} &::=& \COLLECT{\Int} 
+          \MID \ASSIGN{\PUT{\Exp}{\itm{int}}}{\Exp} 
 \end{array}
 \]
 \fi}