Explorar el Código

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

Ramakrishnan Muthukrishnan hace 5 años
padre
commit
8c41f7935a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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}
 \]