--- a/progs/parser-combinators/comb2.sc Thu Nov 26 02:20:13 2020 +0000
+++ b/progs/parser-combinators/comb2.sc Fri Nov 27 13:53:06 2020 +0000
@@ -155,7 +155,8 @@
(p"write(" ~ IdParser ~ p")").map[Stmt]{ case _ ~ y ~ _ => Write(y) } ||
(p"if" ~ BExp ~ p"then" ~ Block ~ p"else" ~ Block)
.map[Stmt]{ case _ ~ y ~ _ ~ u ~ _ ~ w => If(y, u, w) } ||
- (p"while" ~ BExp ~ p"do" ~ Block).map[Stmt]{ case _ ~ y ~ _ ~ w => While(y, w) })
+ (p"while" ~ BExp ~ p"do" ~ Block).map[Stmt]{ case _ ~ y ~ _ ~ w => While(y, w) })
+
// statements
lazy val Stmts: Parser[String, Block] =
--- a/progs/while/compile.sc Thu Nov 26 02:20:13 2020 +0000
+++ b/progs/while/compile.sc Fri Nov 27 13:53:06 2020 +0000
@@ -201,6 +201,7 @@
+
// compiling and running .j-files
//
// JVM files can be assembled with
@@ -225,9 +226,6 @@
-
-
-
/* Jasmin code for reading an integer
.method public static read()I
@@ -264,4 +262,4 @@
ireturn
.end method
-*/
\ No newline at end of file
+*/
Binary file slides/slides07.pdf has changed
--- a/slides/slides07.tex Thu Nov 26 02:20:13 2020 +0000
+++ b/slides/slides07.tex Fri Nov 27 13:53:06 2020 +0000
@@ -1081,6 +1081,10 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\begin{frame}<1-10>
+\end{frame}
+
\end{document}
%%% Local Variables: