瀏覽代碼

fix typo in Lvar BinOp

Jeremy Siek 2 年之前
父節點
當前提交
8fd7ab1e1b
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      book.tex

+ 2 - 2
book.tex

@@ -26,7 +26,7 @@
 
 \def\racketEd{0}
 \def\pythonEd{1}
-\def\edition{0}
+\def\edition{1}
 
 % material that is specific to the Racket edition of the book
 \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{unaryop} &::= & \code{USub()} \\
   \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} 
 \end{array}
 }