Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Commit 2429b1f

Browse files
authored
Few style fixes (#232)
- Change 'We denote X = Y' to 'Let A be Y' (suggested in #180 (comment)) - Remove uses of 'we' pronouns (suggested in #180 (comment))
1 parent 4890714 commit 2429b1f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

document/core/exec/runtime.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ If there is no :ref:`tag address <syntax-tagaddr>`, the instructions of that tar
552552
553553
Intuitively, for each target :math:`\{\tagaddr^?~\instr^\ast\}` of a |CATCHadm|, :math:`\instr^\ast` is the *continuation* to execute
554554
when the handler catches a thrown exception with tag |tagaddr|, or for any exception, when a target specifies no tag address.
555-
In that case, we say that the exception is handled by the exception handler |CATCHadm|.
555+
In that case, the exception is handled by the exception handler |CATCHadm|.
556556
If this list of targets is empty, or if the tag address of the thrown exception is not in the handler's mapping and there is no |CATCHALL| clause, then the exception will be rethrown.
557557

558558
.. todo::
@@ -677,7 +677,7 @@ In order to specify the reduction of :ref:`branches <syntax-instr-control>`, the
677677
678678
This definition allows to index active labels surrounding a :ref:`branch <syntax-br>` or :ref:`return <syntax-return>` instruction.
679679

680-
In order to be able to break jumping over exception handlers and caught exceptions, we must allow for these new structured administrative control instructions to appear after labels in block contexts, by extending block context as follows.
680+
In order to be able to break jumping over exception handlers and caught exceptions, these new structured administrative control instructions are allowed to appear after labels in block contexts, by extending block context as follows.
681681

682682
.. math::
683683
\begin{array}{llll}
@@ -740,7 +740,7 @@ If no exception :ref:`handler that catches the exception <syntax-handler>` is fo
740740
\stepto & S;~F;~\LABEL_m\{\} (\CATCHadm\{a~\RETURN\}~\val^n~(\THROW~x)~\END)~\END \\
741741
\end{array}
742742
743-
We denote :math:`\val^n = \val^{n-m} \val^m`.
743+
Let :math:`\val^n` be :math:`\val^{n-m} \val^m`.
744744
:ref:`Handling the thrown exception <exec-throwadm>` with tag address :math:`a` in the throw context
745745
:math:`T=[val^{n-m}\_]`, with the exception handler :math:`H=\CATCHadm\{a~\RETURN\}` gives:
746746

@@ -751,11 +751,11 @@ If no exception :ref:`handler that catches the exception <syntax-handler>` is fo
751751
\end{array}
752752
753753
754+
When a throw of the form :math:`val^m (\THROWadm~a)` occurs, search for the maximal surrounding throw context :math:`T` is performed,
755+
which means any other values, labels, frames, and |CAUGHTadm| instructions surrounding the throw :math:`val^m (\THROWadm~a)` are popped,
756+
until a :ref:`handler <syntax-handler>` for the exception is found.
757+
Then a new |CAUGHTadm| instruction, containing the tag address :math:`a` and the values :math:`\val^m`, is pushed onto the stack.
754758

755-
When a throw of the form :math:`val^m (\THROWadm~a)` occurs, we search for the maximal surrounding throw context :math:`T`,
756-
which means we pop any other values, labels, frames, and |CAUGHTadm| instructions surrounding the throw :math:`val^m (\THROWadm~a)`,
757-
until we find an exception handler (corresponding to a try block) that :ref:`handles the exception <syntax-handler>`.
758-
We then append the values :math:`val^m:[t^m]` to the tag address :math:`a` into a new |CAUGHTadm| instruction which we push on the stack.
759759

760760
In other words, when a throw occurs, normal execution halts and exceptional execution begins, until the throw
761761
is the continuation (i.e., in the place of a :math:`\_`) of a throw context in a catching try block.

0 commit comments

Comments
 (0)