Binary file 2017/Autumn_17_8-Compilers_and_Formal_Languages-Christian_Urban.pdf has changed
Binary file 2017/Autumn_17_8-Compilers_and_Formal_Languages-General_questions.pdf has changed
Binary file 2017/Autumn_17_8-Compilers_and_Formal_Languages_(6CCS3CFL_2017_8_SEM1_000001).pdf has changed
Binary file Admin/Autumn_17_8-Compilers_and_Formal_Languages-Christian_Urban.pdf has changed
Binary file Admin/Autumn_17_8-Compilers_and_Formal_Languages-General_questions.pdf has changed
Binary file Admin/Autumn_17_8-Compilers_and_Formal_Languages_(6CCS3CFL_2017_8_SEM1_000001).pdf has changed
Binary file Admin/Autumn_18_9-Compilers_and_Formal_Languages_(6CCS3CFL_2018_9_SEM1_000001).pdf has changed
Binary file Admin/Autumn_19_0-CHRISTIAN_URBAN.pdf has changed
Binary file coursework/cw01.pdf has changed
--- a/coursework/cw01.tex Mon Aug 24 15:03:55 2020 +0100
+++ b/coursework/cw01.tex Mon Aug 31 16:57:15 2020 +0100
@@ -9,16 +9,19 @@
\begin{document}
\newcolumntype{C}[1]{>{\centering}m{#1}}
-\section*{Coursework 1 (Strand 1)}
+\section*{Coursework 1}
-This coursework is worth 4\% and is due on \cwONE{} at
-18:00. You are asked to implement a regular expression matcher
-and submit a document containing the answers for the questions
-below. You can do the implementation in any programming
-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 can submit your answers in a txt-file or pdf.
-Code send as code.
+This coursework is worth 5\% and is due on \cwONE{} at 18:00. You are
+asked to implement a regular expression matcher and submit a document
+containing the answers for the questions below. You can do the
+implementation in any programming 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 can submit your answers
+in a txt-file or pdf. Code send as code. Please package everything
+inside a zip-file that creates a directory with the name
+\[\texttt{YournameYourfamilyname}\]
+
+\noindent on my end. Thanks!
@@ -71,8 +74,12 @@
That means do not treat the extended regular expressions
by just translating them into the basic ones. See also Question 3,
where you are asked to explicitly give the rules for \textit{nullable}
-and \textit{der} for the extended regular expressions. So something like
-$der\,c\,(r^+) \dn der\,c\,(r\cdot r^*)$ is \emph{not} allowed.\medskip
+and \textit{der} for the extended regular expressions. Something like
+
+\[der\,c\,(r^+) \dn der\,c\,(r\cdot r^*)\]
+
+\noindent is \emph{not} allowed as answer in Question 3 and \emph{not}
+allowed in your code.\medskip
\noindent
The meanings of the extended regular expressions are
@@ -116,9 +123,9 @@
\subsection*{Question 2 (Unmarked)}
Can you please list all programming languages in which you have
-already written programs (like spent at least a good working day
-fiddling with the program or programs)? This is just for my
-curiosity to estimate what your background is.
+already written programs (include only instances where you have spent
+at least a good working day fiddling with a program)? This is just
+for my curiosity to estimate what your background is.
\subsection*{Question 3}
@@ -170,7 +177,7 @@
\begin{center}
\def\arraystretch{1.2}
-\begin{tabular}{@{}r|m{6mm}|m{6mm}|m{6mm}|m{10mm}|m{10mm}|m{10mm}|m{10mm}|m{10mm}}
+\begin{tabular}{@{}r|m{3mm}|m{6mm}|m{6mm}|m{10mm}|m{6mm}|m{10mm}|m{10mm}|m{10mm}}
string & $a^?$ & $\sim{}a$ & $a^{\{3\}}$ & $(a^?)^{\{3\}}$ & $a^{\{..3\}}$ &
$(a^?)^{\{..3\}}$ & $a^{\{3..5\}}$ & $(a^?)^{\{3..5\}}$ \\\hline
$[]$ &&&&&&& \\\hline
@@ -294,7 +301,10 @@
\subsection*{Question 7}
Let $r_1$ be the regular expression $a\cdot a\cdot a$ and $r_2$ be
-$(a^{\{19,19\}}) \cdot (a^?)$. Decide whether the following three
+$(a^{\{19,19\}}) \cdot (a^?)$.\medskip
+
+\noindent
+Decide whether the following three
strings consisting of $a$s only can be matched by $(r_1^+)^+$.
Similarly test them with $(r_2^+)^+$. Again answer in all six cases
with yes or no. \medskip
Binary file coursework/cw02.pdf has changed
--- a/coursework/cw02.tex Mon Aug 24 15:03:55 2020 +0100
+++ b/coursework/cw02.tex Mon Aug 31 16:57:15 2020 +0100
@@ -5,16 +5,16 @@
\begin{document}
-\section*{Coursework 2 (Strand 1)}
+\section*{Coursework 2}
-\noindent This coursework is worth 5\% and is due on
-\cwTWO{} at 18:00. You are asked to implement the Sulzmann \&
-Lu lexer for the WHILE language. You can do the
-implementation in any programming 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 can
-submit your answers in a txt-file or as pdf. Code submit as
-code.
+\noindent This coursework is worth 8\% and is due on \cwTWO{} at
+18:00. You are asked to implement the Sulzmann \& Lu lexer for the
+WHILE language. You can do the implementation in any programming
+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 can submit your answers in a txt-file or as pdf. Code
+submit as code. Please package everything in a zip-file that creates a
+directory with the name \texttt{YournameYourfamilyname} on my end. Thanks!
\subsection*{Disclaimer}
@@ -28,12 +28,12 @@
To implement a lexer for the WHILE language, you first
need to design the appropriate regular expressions for the
-following eight syntactic entities:
+following eleven syntactic entities:
\begin{enumerate}
\item keywords are
-\begin{quote}
+\begin{center}
\texttt{while},
\texttt{if},
\texttt{then},
@@ -46,11 +46,9 @@
\texttt{read},
\texttt{write},
\texttt{skip}
-\end{quote}
+\end{center}
-\item operators are
-
-\begin{quote}
+\item operators are:
\texttt{+},
\texttt{-},
\texttt{*},
@@ -59,13 +57,27 @@
\texttt{==},
\texttt{!=},
\texttt{>},
-\texttt{<},
+\texttt{<},
+\texttt{<=},
+\texttt{>=},
\texttt{:=},
\texttt{\&\&},
\texttt{||}
-\end{quote}
+
+\item letters are uppercase and lowercase
-\item strings are enclosed by \texttt{"\ldots"}
+\item symbols are letters plus the characters
+ \texttt{.},
+ \texttt{\_},
+ \texttt{>},
+ \texttt{<},
+ \texttt{=},
+ \texttt{;},
+ \texttt{,} and
+ \texttt{:}
+
+\item strings are enclosed by \texttt{"\ldots"} and consisting of
+ symbols, whitespaces and digits
\item parentheses are \texttt{(}, \texttt{\{}, \texttt{)} and \texttt{\}}
\item there are semicolons \texttt{;}
\item whitespaces are either \texttt{" "} (one or more) or \texttt{$\backslash$n} or
@@ -75,6 +87,7 @@
\item numbers are \pcode{0}, \pcode{1}, \ldots and so on; give
a regular expression that can recognise \pcode{0}, but not numbers
with leading zeroes, such as \pcode{001}
+\item comments start with \texttt{//} and contain symbols, spaces and digits until the end of the line
\end{enumerate}
\noindent
@@ -169,31 +182,38 @@
\subsection*{Question 3}
-Extend your lexer from Q2 to also simplify regular expressions
-after each derivation step and rectify the computed values after each
+Extend your lexer from Q2 to also simplify regular expressions after
+each derivation step and rectify the computed values after each
injection. Use this lexer to tokenize the programs in
-Figure~\ref{fib}, \ref{loop} and \ref{factors}. Give the tokens of these
-programs where whitespaces are filtered out. Make sure you can
-tokenise \textbf{exactly} these programs.\bigskip
+Figures~\ref{fib} -- \ref{collatz}. You can find the programms also on
+KEATS. Give the tokens of these programs where whitespaces are
+filtered out. Make sure you can tokenise \textbf{exactly} these
+programs.\bigskip
\begin{figure}[h]
-\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/fib.while}}
+\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/fib.while}}
\caption{Fibonacci program in the WHILE language.\label{fib}}
\end{figure}
\begin{figure}[h]
-\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/loops.while}}
+\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/loops.while}}
\caption{The three-nested-loops program in the WHILE language.
(Usually used for timing measurements.)\label{loop}}
\end{figure}
\begin{figure}[h]
-\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/factors.while}}
+\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/factors.while}}
\caption{A program that calculates factors for numbers in the WHILE
language.\label{factors}}
\end{figure}
+\begin{figure}[h]
+\mbox{\lstinputlisting[language=While,xleftmargin=10mm]{../progs/while-tests/collatz2.while}}
+\caption{A program that calculates the Collatz series for numbers
+ between 1 and 100.\label{collatz}}
+\end{figure}
+
\end{document}
%%% Local Variables:
Binary file coursework/cw03.pdf has changed
--- a/coursework/cw03.tex Mon Aug 24 15:03:55 2020 +0100
+++ b/coursework/cw03.tex Mon Aug 31 16:57:15 2020 +0100
@@ -11,13 +11,14 @@
\url{https://github.com/ArashPartow/math-parser-benchmark-project}
-\noindent This coursework is worth 5\% and is due on \cwTHREE{}
-at 18:00. You are asked to implement a parser for the
-WHILE language and also an interpreter. You can do the
-implementation in any programming 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 from the previous coursework for the parser.
+\noindent This coursework is worth 5\% and is due on \cwTHREE{} at
+18:00. You are asked to implement a parser for the WHILE language and
+also an interpreter. You can do the implementation in any programming
+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 from the previous coursework for the
+parser. Please package everything(!) in a zip-file that creates a
+directory with the name \texttt{YournameYourFamilyname} on my end.
\subsection*{Disclaimer}
Binary file coursework/cw04.pdf has changed
--- a/coursework/cw04.tex Mon Aug 24 15:03:55 2020 +0100
+++ b/coursework/cw04.tex Mon Aug 31 16:57:15 2020 +0100
@@ -21,7 +21,9 @@
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. Please package \emph{everything}(!) in
+a zip-file that creates a directory with the name
+\texttt{YournameYourFamilyname} on my end.
\subsection*{Disclaimer}
Binary file coursework/cw05.pdf has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/bf/mandelbrot-huge.bf Mon Aug 31 16:57:15 2020 +0100
@@ -0,0 +1,145 @@
+ A mandelbrot set fractal viewer in brainf*** written by Erik Bosman
++++++++++++++[->++>>>+++++>++>+<<<<<<]>>>>>++++++>--->>>>>>>>>>+++++++++++++++[[
+>>>>>>>>>]+[<<<<<<<<<]>>>>>>>>>-]+[>>>>>>>>[-]>]<<<<<<<<<[<<<<<<<<<]>>>>>>>>[-]+
+<<<<<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>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<<<<<<<]>>>>>>>>]<<<<
+<<<<<[<<<<<<<<<]>>>>[-]<<<+++++[-[->>>>>>>>>+<<<<<<<<<]>>>>>>>>>]>>>>>->>>>>>>>>
+>>>>>>>>>>>>>>>>>>-<<<<<<[<<<<<<<<<]]>>>]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/progs/while-tests/collatz2.while Mon Aug 31 16:57:15 2020 +0100
@@ -0,0 +1,27 @@
+// Collatz series
+//
+// needs writing of strings and numbers; comments
+
+bnd := 1;
+while bnd < 101 do {
+ write bnd;
+ write ": ";
+ n := bnd;
+ cnt := 0;
+
+ while n > 1 do {
+ write n;
+ write ",";
+
+ if n % 2 == 0
+ then n := n / 2
+ else n := 3 * n+1;
+
+ cnt := cnt + 1;
+ };
+
+ write " => ";
+ write cnt;
+ write "\n";
+ bnd := bnd + 1;
+};
\ No newline at end of file