Переглянути джерело

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}
 \]