浏览代码

Exercise 1: "int" is an "exp" as well

Ramakrishnan Muthukrishnan 5 年之前
父节点
当前提交
8c41f7935a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      book.tex

+ 1 - 1
book.tex

@@ -929,7 +929,7 @@ output that takes the form of the $\itm{residual}$ non-terminal in the
 following grammar.
 \[
 \begin{array}{lcl}
-\Exp &::=& (\key{read}) \mid (\key{-} \;(\key{read})) \mid (\key{+} \; \Exp \; \Exp)\\
+\Exp &::=& \Int \mid (\key{read}) \mid (\key{-} \;(\key{read})) \mid (\key{+} \; \Exp \; \Exp)\\
 \itm{residual} &::=& \Int \mid (\key{+}\; \Int\; \Exp) \mid \Exp
 \end{array}
 \]