\item Most directives fit on one line. If needed however, two backslashes (i.e. \verb+\\+) at the end of a line indicate that the directive is continued on the next line.
\item Most directives fit on one line. If needed however, two backslashes (\textit{i.e.}\verb+\\+) at the end of a line indicate that the directive is continued on the next line.
\item Directives are not terminated with a semicolon
\item Directives are not terminated with a semicolon
\end{itemize}
\end{itemize}
\end{frame}
\end{frame}
...
@@ -142,9 +142,9 @@
...
@@ -142,9 +142,9 @@
\begin{itemize}
\begin{itemize}
\item The macro processor can handle values of 5 different types:
\item The macro processor can handle values of 5 different types:
\begin{enumerate}
\begin{enumerate}
\item boolean
\item boolean (logical value, true or false)
\item real
\item real (double precision floating point number)
\item string
\item string (of characters)
\item tuple
\item tuple
\item array
\item array
\end{enumerate}
\end{enumerate}
...
@@ -163,7 +163,7 @@
...
@@ -163,7 +163,7 @@
\begin{frame}[fragile=singleslide]
\begin{frame}[fragile=singleslide]
\frametitle{Macro-expressions (1/8)}
\frametitle{Macro-expressions (1/8)}
\begin{itemize}
\begin{itemize}
\item Macro-expressions are constructed using literals (i.e.\fixed values) of the 5 basic types
\item Macro-expressions are constructed using literals (\textit{i.e.} fixed values) of the 5 basic types
described above, macro-variables, standard operators, function calls and comprehensions.
described above, macro-variables, standard operators, function calls and comprehensions.
\item Macro-expressions can be used in two places:
\item Macro-expressions can be used in two places:
\begin{itemize}
\begin{itemize}
...
@@ -180,7 +180,12 @@
...
@@ -180,7 +180,12 @@
\begin{block}{Operators on booleans}
\begin{block}{Operators on booleans}
\begin{itemize}
\begin{itemize}
\item comparison operators: \texttt{== !=}
\item comparison operators: \texttt{== !=}
\item logical operators: \texttt{\&\& || !}
\item logical operators:
\begin{itemize}
\item conjunction (“and”): \texttt{\&\&}
\item disjunction (“or”): \texttt{||}
\item negation (“not”): \texttt{!}
\end{itemize}
\end{itemize}
\end{itemize}
\end{block}
\end{block}
\end{frame}
\end{frame}
...
@@ -194,7 +199,7 @@
...
@@ -194,7 +199,7 @@
\item logical operators: \verb+&& || !+
\item logical operators: \verb+&& || !+
\item range with unit increment: \texttt{1:4} is equivalent to
\item range with unit increment: \texttt{1:4} is equivalent to
real array \texttt{[1, 2, 3, 4]}. (NB: \texttt{[1:4]} is equivalent to an
real array \texttt{[1, 2, 3, 4]}. (NB: \texttt{[1:4]} is equivalent to an
array containing an array of reals, i.e. \texttt{[[1, 2, 3, 4]]})
array containing an array of reals, \textit{i.e.}\texttt{[[1, 2, 3, 4]]})
\item range with user-defined increment: \texttt{4:-1.1:-1} is equivalent to real array \texttt{[4, 2.9, 1.8, 0.7, -0.4]}.
\item range with user-defined increment: \texttt{4:-1.1:-1} is equivalent to real array \texttt{[4, 2.9, 1.8, 0.7, -0.4]}.