# HG changeset patch # User Christian Urban # Date 1698756756 0 # Node ID 33b3e790e1d4716b14eb96b096f235af41794c43 # Parent 9e7147f33219f0a3527dad3db11fe0a332ef2fbc updated diff -r 9e7147f33219 -r 33b3e790e1d4 cws/cw04.pdf Binary file cws/cw04.pdf has changed diff -r 9e7147f33219 -r 33b3e790e1d4 cws/cw04.tex --- a/cws/cw04.tex Mon Oct 30 18:46:27 2023 +0000 +++ b/cws/cw04.tex Tue Oct 31 12:52:36 2023 +0000 @@ -22,7 +22,7 @@ language you like, but you need to submit the source code with which you answered the questions, otherwise a mark of 0\% will be awarded. You should use the lexer and parser from the -previous courseworks. +previous courseworks. Implement your compiler in the file \texttt{cw04.sc}. %Please package \emph{everything}(!) in %a zip-file that creates a directory with the name @@ -249,7 +249,7 @@ Note that in this program the variable \pcode{i} is used twice. You need to make a decision how it should be compiled? Explain your decision and indicate what this program would -print out. +print out. Give your answer in the file \texttt{q3-answer.txt}. \subsection*{Question 4} @@ -288,7 +288,8 @@ but not \code{"Should not print"}. For this you need to add a label to the end of every for-loop and also to the end of the whole program just in case you need to jump to that label via a -\code{break}. +\code{break}. The file you need to be able to process for this question +is called \texttt{break.while}. \subsection*{Further Information}