Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions chapters/equations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@ \subsection{Simple Equality Equations}\label{simple-equality-equations}
\end{nonnormative}


\subsection{Side-Effect Equations}\label{side-effect-equations}

An equation in the following form calls the given function or operator:
\begin{itemize}
\item \lstinline!function_name(inexpr1, inexpr2);!
\end{itemize}
It behaves similarly to a simple equation (calling the function or operator), even if it uses a different production in the grammar.
It is used for special operators like \lstinline!reinit! (\cref{reinit}), \lstinline!assert! (\cref{assert}), and \lstinline!terminate! (\cref{terminate}).

\begin{nonnormative}
Comment thread
HansOlsson marked this conversation as resolved.
If the function has any outputs they will be ignored.
That case is not recommended, but it is allowed to avoid having special rules in function-subtyping \cref{function-compatibility-or-function-subtyping-for-functions}.
\end{nonnormative}


\subsection{For-Equations -- Repetitive Equation Structures}\label{for-equations-repetitive-equation-structures}

The syntax of a \lstinline!for!-equation\index{for@\robustinline{for}!equation}\index{loop@\robustinline{loop}!for-equation@\robustinline{for}-equation} is given by \productionref{for-equation} in the grammar.
Expand Down