Skip to content

Commit

Permalink
Frame/label rules
Browse files Browse the repository at this point in the history
  • Loading branch information
rossberg committed Mar 26, 2024
1 parent 08be410 commit c86ed8c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions document/core/exec/instructions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3733,11 +3733,7 @@ When the end of a block is reached without a jump or trap aborting it, then the

5. Jump to the position after the |END| of the :ref:`structured control instruction <syntax-instr-control>` associated with the label :math:`L`.

.. math::
~\\[-1ex]
\begin{array}{lcl@{\qquad}l}
\LABEL_n\{\instr^\ast\}~\val^\ast~\END &\stepto& \val^\ast
\end{array}
$${rule: Step_pure/label-vals}

.. note::
This semantics also applies to the instruction sequence contained in a |LOOP| instruction.
Expand Down Expand Up @@ -3859,11 +3855,7 @@ When the end of a function is reached without a jump (i.e., |RETURN|) or trap ab

8. Jump to the instruction after the original call.

.. math::
~\\[-1ex]
\begin{array}{lcl@{\qquad}l}
\FRAME_n\{F\}~\val^n~\END &\stepto& \val^n
\end{array}
$${rule: Step_pure/frame-vals}


.. index:: host function, store
Expand Down Expand Up @@ -3942,6 +3934,8 @@ An :ref:`expression <syntax-expr>` is *evaluated* relative to a :ref:`current <e

The value :math:`\val` is the result of the evaluation.

$${rule: Eval_expr}

.. math::
S; F; \instr^\ast \stepto S'; F'; \instr'^\ast
\qquad (\iff S; F; \instr^\ast~\END \stepto S'; F'; \instr'^\ast~\END)
Expand Down

0 comments on commit c86ed8c

Please sign in to comment.