cws/cw05.tex
changeset 987 ad5ad452223c
parent 959 64ec1884d860
child 988 2857dcb18458
equal deleted inserted replaced
986:68b1a84efce6 987:ad5ad452223c
    68 %\noindent
    68 %\noindent
    69 %on my end.
    69 %on my end.
    70 You will be marked according to the input files
    70 You will be marked according to the input files
    71 
    71 
    72 \begin{itemize}
    72 \begin{itemize}
    73 \item\href{https://nms.kcl.ac.uk/christian.urban/cfl/progs/sqr.fun}{sqr.fun}  
    73 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/sqr.fun}{sqr.fun}  
    74 \item\href{https://nms.kcl.ac.uk/christian.urban/cfl/progs/fact.fun}{fact.fun}
    74 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/fact.fun}{fact.fun}
    75 \item\href{https://nms.kcl.ac.uk/christian.urban/cfl/progs/mand.fun}{mand.fun}
    75 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/mand.fun}{mand.fun}
    76 \item\href{https://nms.kcl.ac.uk/christian.urban/cfl/progs/mand2.fun}{mand2.fun}
    76 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/mand2.fun}{mand2.fun}
    77 \item\href{https://nms.kcl.ac.uk/christian.urban/cfl/progs/hanoi.fun}{hanoi.fun}    
    77 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/hanoi.fun}{hanoi.fun}   
       
    78 \item\href{https://cflmark.nms.kcl.ac.uk/hg/afl-material/raw-file/tip/progs/sqr.fun}{sqr.fun}    
    78 \end{itemize}  
    79 \end{itemize}  
    79 
    80 
    80 \noindent
    81 \noindent
    81 which are uploaded to KEATS and Github.
    82 which are uploaded to KEATS and Github.
    82 
    83 
    84 
    85 
    85 It should be understood that the work you submit represents your own
    86 It should be understood that the work you submit represents your own
    86 effort. You have not copied from anyone else. An exception is the
    87 effort. You have not copied from anyone else. An exception is the
    87 Scala code I showed during the lectures or uploaded to KEATS, which
    88 Scala code I showed during the lectures or uploaded to KEATS, which
    88 you can both use. You can also use your own code from the CW~1 --
    89 you can both use. You can also use your own code from the CW~1 --
    89 CW~4. But do not
    90 CW~4. %But do not
    90 be tempted to ask Github Copilot for help or do any other
    91 %be tempted to ask Github Copilot for help or do any other
    91 shenanigans like this!
    92 %shenanigans like this!
    92 
    93 
    93 
    94 
    94 \subsection*{Task}
    95 \subsection*{Task}
    95 
    96 
    96 The goal is to lex and parse 5 Fun-programs, including the
    97 The goal is to lex and parse 5 Fun-programs, including the
   279   to just look at what data is avaliable and generate all
   280   to just look at what data is avaliable and generate all
   280   missing information by ``simple means''\ldots rather than
   281   missing information by ``simple means''\ldots rather than
   281   looking at the literature which solves the problem
   282   looking at the literature which solves the problem
   282   with much heavier machinery.
   283   with much heavier machinery.
   283 
   284 
   284 \item \textbf{Build-In Functions}: The `prelude' comes
   285 \item \textbf{Built-In Functions}: The `prelude' comes
   285   with several build-in functions: \texttt{new\_line()},
   286   with several built-in functions: \texttt{new\_line()},
   286   \texttt{skip}, \texttt{print\_int(n)}, \texttt{print\_space()},
   287   \texttt{skip}, \texttt{print\_int(n)}, \texttt{print\_space()},
   287   \texttt{print\_star()} and \texttt{print\_char(n)}. You can find the `prelude' for
   288   \texttt{print\_star()} as well as \texttt{print\_char(n)}. You 
   288   example in the file \texttt{sqr.ll}.
   289   can find the `prelude' for
       
   290   example in the file \texttt{sqr.ll}. When printing strings, you 
       
   291   can assume programs only contain string \emph{constants}. (see
       
   292   for example sqr.fun and hanoi.fun).
   289 \end{itemize}  
   293 \end{itemize}  
   290 
   294 
   291 \end{document}
   295 \end{document}
   292 
   296 
   293 %%% Local Variables: 
   297 %%% Local Variables: