handouts/amm-ho.tex
author Christian Urban <christian.urban@kcl.ac.uk>
Wed, 15 Dec 2021 19:00:01 +0000
changeset 864 b5b1bc0a603b
parent 838 97df390d64f5
child 869 81ee93b87258
permissions -rw-r--r--
added
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     1
\documentclass{article}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     2
\usepackage{../style}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     3
\usepackage{../langs}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     4
\usepackage{marvosym}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     5
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     6
%cheat sheet
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     7
%http://worldline.github.io/scala-cheatsheet/
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     8
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
     9
\begin{document}
838
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    10
\fnote{\copyright{} Christian Urban, King's College London, 2020, 2021}
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    11
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    12
\section*{Scala in 6CCS3CFL}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    13
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    14
For the coursework in this module you are free to use any programming
756
f7c7a75e0583 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 755
diff changeset
    15
language you like, but I will show you all my code using Scala---I
830
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    16
hope you have fond memories of Scala from PEP. If you need a reminder
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    17
of the Scala handouts for PEP have a look
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    18
\hr{http://talisker.nms.kcl.ac.uk/cgi-bin/repos.cgi/pep-material/raw-file/tip/handouts/pep-ho.pdf}
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    19
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    20
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    21
But as said, you do not need to use Scala for your own
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    22
code.\footnote{Haskell, Rust, Ocaml were other languages that have
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    23
  been used previously in CFL. I recommend to not use Java or C for
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    24
  writing a compiler, but if you insist, feel free. It has been done
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    25
before.}  I will use the
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    26
current stable version of Scala, which is 2.13.6. For various reasons,
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    27
I am NOT GOING TO USE THE LATEST VERSION OF SCALA 3.0! Please be
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    28
aware of this when you run my code.
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    29
\bigskip
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    30
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    31
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    32
The main difference to the Scala I showed you in PEP is that in CFL
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    33
I will use the Ammonite REPL
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    34
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    35
\begin{quote}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    36
\url{https://ammonite.io/#Ammonite-REPL}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    37
\end{quote}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    38
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    39
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    40
This is a drop-in replacement for the original Scala REPL and
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    41
works very similarly, for example
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    42
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    43
\begin{lstlisting}[language={},numbers=none,basicstyle=\ttfamily\small]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    44
$ amm
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    45
Loading...  
838
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    46
Welcome to the Ammonite Repl 2.4.0 (Scala 2.13.6 Java 9)
830
dbf9d710ce65 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 760
diff changeset
    47
scala> 1 + 2
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    48
res0: Int = 3
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    49
\end{lstlisting} %% $
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    50
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    51
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    52
Ammonite uses the same Scala compiler, just adds some useful features
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    53
on top of it. It is quite main-stream in the Scala community and it should
838
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    54
therefore be very easy for you to install \texttt{amm}. If you work under
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    55
a Unix-like system, a sure way to install the right version of Ammonite
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    56
is by using \texttt{curl}:
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    57
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    58
\begin{lstlisting}[numbers=none,language={},basicstyle=\ttfamily\small]
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    59
$ curl -L https://github.com/com-lihaoyi/Ammonite/
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    60
                 releases/download/2.4.0/2.13-2.4.0 --output amm
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    61
\end{lstlisting}  
97df390d64f5 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 830
diff changeset
    62
759
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    63
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    64
The big advantage of Ammonite is that it comes with some additional
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    65
libraries already built-in and also allows one to easily break up code
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    66
into smaller modules. For example reading and writing files in
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    67
Ammonite can be achieved with
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    68
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    69
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    70
scala> import ammonite.ops._
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    71
  
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    72
scala> read(pwd / "file.name")   
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    73
res1: String = """..."""
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    74
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    75
scala> write.over(pwd / "file.name", "foo bar")
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    76
\end{lstlisting}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    77
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    78
\noindent
759
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    79
The latter writes the string \code{"foo bar"} into the file
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    80
\code{"file.name"}, which is located in the current working
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    81
directory. For loading and accessing code from another Scala file, you
d70dd0b57e35 updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 756
diff changeset
    82
can import it as follows:
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    83
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    84
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    85
import $file.name-of-the-file
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    86
import name-of-the-file._
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    87
\end{lstlisting}  %% $
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    88
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    89
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    90
This assumes the other Scala file is called
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    91
\texttt{name-of-the-file.sc} and requires the file to be in the same
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    92
directory where \texttt{amm} is working in. This will be very convenient 
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    93
for the compiler we implement in CFL, because it allows us to easily
760
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
    94
break up the code into the lexer, parser and code generator.
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    95
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    96
Another feature which exists in Ammonite, but not yet in the
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    97
current version of Scala (it will be in the next version called dotty)
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    98
is that you can mark functions as \texttt{@main}. For example
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
    99
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   100
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   101
@main
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   102
def foo() = ...
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   103
\end{lstlisting}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   104
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   105
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   106
This means you can now call that function from the command line like
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   107
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   108
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   109
$ amm file.sc foo
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   110
\end{lstlisting} %% $
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   111
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   112
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   113
If you want to specify an argument on the commandline, say an int and
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   114
a string, then you can write
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   115
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   116
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   117
@main
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   118
def bar(i: Int, s: String) = ...
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   119
\end{lstlisting}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   120
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   121
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   122
and then call
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   123
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   124
\begin{lstlisting}[numbers=none,language=Scala]
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   125
$ amm file.sc 42 foobar
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   126
\end{lstlisting} %% $
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   127
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   128
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   129
What is also good in Ammonite that you can specify more than one
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   130
function to be ``main'' and then specify on the command line which
760
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   131
function you want to run as entry-point.
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   132
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   133
Another feature you might like to use is that Ammonite can ``watch'' files.
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   134
This means it can automatically re-run a file when it is saved. For this
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   135
you have to call \texttt{amm} with the option \texttt{-w}, as in
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   136
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   137
\begin{lstlisting}[numbers=none,language=Scala]
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   138
$ amm -w file.sc
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   139
\end{lstlisting} %% $
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   140
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   141
\noindent Of course this requires that you use \texttt{println} for
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   142
inspecting any data, as otherwise nothing will be displayed at the
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   143
commandline.
d41956ea544e updated
Christian Urban <christian.urban@kcl.ac.uk>
parents: 759
diff changeset
   144
\bigskip
754
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   145
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   146
\noindent
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   147
To sum up, Ammonite is a really useful addition to the Scala ecosystem.
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   148
You can find more information about how to use it in the first five chapters
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   149
of the ``Hands-on Scala'' book by Li Haoyi. These chapters are
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   150
free and can be used as a reference, see:
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   151
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   152
\begin{center}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   153
\url{https://www.handsonscala.com/part-i-introduction-to-scala.html}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   154
\end{center}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   155
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   156
\end{document}
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   157
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   158
%%% Local Variables: 
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   159
%%% mode: latex
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   160
%%% TeX-master: t
1c9a23304b85 ammonite
Christian Urban <christian.urban@kcl.ac.uk>
parents:
diff changeset
   161
%%% End: