Skip to content

Commit

Permalink
Updated documentation: Verify is no longer a statement in the semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
didriklundberg committed Jan 8, 2025
1 parent 1e943af commit 6b3ae86
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
Binary file modified docs/semantics/main.pdf
Binary file not shown.
13 changes: 0 additions & 13 deletions docs/semantics/main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -488,17 +488,6 @@ \subsubsection*{Transition}
\end{figure}



\subsubsection*{Verify}
The $\mathbf{verify} \, \expr \, \expr'$ statement is used to check the whether the boolean expression $\expr$ holds; if it does, then nothing happens, as stated in the \textsc{stmt\_verify\_3} rule. Otherwise, it assigns the error in $\expr'$ to $"parseError"$ and reduces the statement to a $\mathbf{transition}$ statement to the state \reject{}.

\begin{figure}[ht!]
\ottusedrule{\ottdrulestmtXXverifyXXThree{}} \\
\ottusedrule{\ottdrulestmtXXverifyXXFour{}}
\end{figure}



\subsection{Frame-Level Semantics}
The statement semantics in the previous section operate on a single frame containing a list of statements, however when a function being called, a new frame will be pushed to the frame list of the state. The frame-level semantics will always try to execute the top frame, however \textsc{frames\_comp1} will be used when the status is not set to $\returnst{v}$ and \textsc{frames\_comp2} when it is.

Expand Down Expand Up @@ -690,8 +679,6 @@ \section{Semantics of Expression Reduction}
\ottusedrule{\ottdrulestmtXXretXXe{}}
\ottusedrule{\ottdrulestmtXXassXXe{}}
\ottusedrule{\ottdrulestmtXXcondXXe{}}
\ottusedrule{\ottdrulestmtXXverifyXXeOne{}}
\ottusedrule{\ottdrulestmtXXverifyXXeTwo{}}
\end{ottdefnblock}
\caption{Statement Reduction-of-Argument Semantics (selection)}
\label{fig:semstmt2}
Expand Down

0 comments on commit 6b3ae86

Please sign in to comment.