--- a/hw08.tex Sat Nov 24 07:08:51 2012 +0000
+++ b/hw08.tex Sat Nov 24 14:58:27 2012 +0000
@@ -21,7 +21,7 @@
& $|$ & $Id := AExp$\\
& $|$ & $\text{if}\; B\!Exp \;\text{then}\; Block \;\text{else}\; Block$\\
& $|$ & $\text{while}\; B\!Exp \;\text{do}\; Block$\medskip\\
-$Stmt$ & $\rightarrow$ & $Stmt \;\text{;}\; Stmts$\\
+$Stmts$ & $\rightarrow$ & $Stmt \;\text{;}\; Stmts$\\
& $|$ & $Stmt$\medskip\\
$Block$ & $\rightarrow$ & $\{ Stmts \}$\\
& $|$ & $Stmt$\medskip\\
@@ -40,6 +40,8 @@
Transform this grammar into Chomsky normalform.
+\item Write a program in the WHILE-language that calculates the factorial function.
+
\end{enumerate}
\end{document}