diff -r dc3c35673e94 -r dbf9d710ce65 handouts/amm-ho.tex --- a/handouts/amm-ho.tex Mon Aug 30 15:50:27 2021 +0100 +++ b/handouts/amm-ho.tex Tue Aug 31 11:49:09 2021 +0100 @@ -13,14 +13,20 @@ For the coursework in this module you are free to use any programming language you like, but I will show you all my code using Scala---I -hope you have fond memories of Scala from PEP. But as said, you do not -need to use Scala for your own code.\footnote{Haskell, Rust, Ocaml - were other languages that have been used previously in CFL. I - recommend to not use Java or C for writing a compiler, but if you - insist, feel free.} I will use the current stable version of -Scala, which is 2.13.3. If you need a reminder of the Scala handouts -for PEP have a look -\hr{http://talisker.nms.kcl.ac.uk/cgi-bin/repos.cgi/pep-material/raw-file/tip/handouts/pep-ho.pdf}\bigskip +hope you have fond memories of Scala from PEP. If you need a reminder +of the Scala handouts for PEP have a look +\hr{http://talisker.nms.kcl.ac.uk/cgi-bin/repos.cgi/pep-material/raw-file/tip/handouts/pep-ho.pdf} + + +But as said, you do not need to use Scala for your own +code.\footnote{Haskell, Rust, Ocaml were other languages that have + been used previously in CFL. I recommend to not use Java or C for + writing a compiler, but if you insist, feel free. It has been done +before.} I will use the +current stable version of Scala, which is 2.13.6. For various reasons, +I am NOT GOING TO USE THE LATEST VERSION OF SCALA 3.0! Please be +aware of this when you run my code. +\bigskip \noindent The main difference to the Scala I showed you in PEP is that in CFL @@ -37,8 +43,8 @@ \begin{lstlisting}[language={},numbers=none,basicstyle=\ttfamily\small] $ amm Loading... -Welcome to the Ammonite Repl 2.2.0 (Scala 2.13.3 Java 9) -scala> 1 + 2 +Welcome to the Ammonite Repl 2.3.8 (Scala 2.13.3 Java 9) +scala> 1 + 2 res0: Int = 3 \end{lstlisting} %% $